diff options
author | Nick Samarin <nicks1987@bigmir.net> | 2010-06-19 03:48:52 +0400 |
---|---|---|
committer | Nick Samarin <nicks1987@bigmir.net> | 2010-06-19 03:48:52 +0400 |
commit | c92d0dfdf6b6a03726612f426e1f0e506a899f42 (patch) | |
tree | 8780c579fc9d763f1079267427906de32a785419 /source/gameengine/Ketsji/KX_ObstacleSimulation.h | |
parent | 700c32e73833205830b062a13270e4a45668cad0 (diff) |
Added:
- obstacle culling for correct simulation in 3d
- flag for steering actuator termination on reaching target
- path recalculation period
- advance by waypoints (for path following)
Diffstat (limited to 'source/gameengine/Ketsji/KX_ObstacleSimulation.h')
-rw-r--r-- | source/gameengine/Ketsji/KX_ObstacleSimulation.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/gameengine/Ketsji/KX_ObstacleSimulation.h b/source/gameengine/Ketsji/KX_ObstacleSimulation.h index 8463820b7c8..4b323035823 100644 --- a/source/gameengine/Ketsji/KX_ObstacleSimulation.h +++ b/source/gameengine/Ketsji/KX_ObstacleSimulation.h @@ -73,9 +73,12 @@ class KX_ObstacleSimulation protected: std::vector<KX_Obstacle*> m_obstacles; + MT_Scalar m_levelHeight; + virtual KX_Obstacle* CreateObstacle(); + bool FilterObstacle(KX_Obstacle* activeObstacle, KX_NavMeshObject* activeNavMeshObj, KX_Obstacle* otherObstacle); public: - KX_ObstacleSimulation(); + KX_ObstacleSimulation(MT_Scalar levelHeight); virtual ~KX_ObstacleSimulation(); void DrawObstacles(); @@ -114,7 +117,7 @@ protected: std::vector<TOICircle*> m_toiCircles; // TOI circles (one per active agent) virtual KX_Obstacle* CreateObstacle(); public: - KX_ObstacleSimulationTOI(); + KX_ObstacleSimulationTOI(MT_Scalar levelHeight); ~KX_ObstacleSimulationTOI(); virtual void AdjustObstacleVelocity(KX_Obstacle* activeObst, KX_NavMeshObject* activeNavMeshObj, MT_Vector3& velocity, MT_Scalar maxDeltaSpeed,MT_Scalar maxDeltaAngle); |