| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- namespace DotRecast.Detour.Crowd
- {
- public class DtObstacleAvoidanceParams
- {
- public float velBias;
- public float weightDesVel;
- public float weightCurVel;
- public float weightSide;
- public float weightToi;
- public float horizTime;
- public int gridSize;
- /// < grid
- public int adaptiveDivs;
- /// < adaptive
- public int adaptiveRings;
- /// < adaptive
- public int adaptiveDepth;
- /// < adaptive
- public DtObstacleAvoidanceParams()
- {
- velBias = 0.4f;
- weightDesVel = 2.0f;
- weightCurVel = 0.75f;
- weightSide = 0.75f;
- weightToi = 2.5f;
- horizTime = 2.5f;
- gridSize = 33;
- adaptiveDivs = 7;
- adaptiveRings = 2;
- adaptiveDepth = 5;
- }
- public DtObstacleAvoidanceParams(DtObstacleAvoidanceParams option)
- {
- velBias = option.velBias;
- weightDesVel = option.weightDesVel;
- weightCurVel = option.weightCurVel;
- weightSide = option.weightSide;
- weightToi = option.weightToi;
- horizTime = option.horizTime;
- gridSize = option.gridSize;
- adaptiveDivs = option.adaptiveDivs;
- adaptiveRings = option.adaptiveRings;
- adaptiveDepth = option.adaptiveDepth;
- }
- };
- }
|