Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Samarin <nicks1987@bigmir.net>2010-06-19 03:48:52 +0400
committerNick Samarin <nicks1987@bigmir.net>2010-06-19 03:48:52 +0400
commitc92d0dfdf6b6a03726612f426e1f0e506a899f42 (patch)
tree8780c579fc9d763f1079267427906de32a785419 /source/gameengine/Ketsji/KX_SteeringActuator.h
parent700c32e73833205830b062a13270e4a45668cad0 (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_SteeringActuator.h')
-rw-r--r--source/gameengine/Ketsji/KX_SteeringActuator.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/gameengine/Ketsji/KX_SteeringActuator.h b/source/gameengine/Ketsji/KX_SteeringActuator.h
index b303a2a8037..5ac5a9f37c4 100644
--- a/source/gameengine/Ketsji/KX_SteeringActuator.h
+++ b/source/gameengine/Ketsji/KX_SteeringActuator.h
@@ -43,6 +43,7 @@ class KX_GameObject;
class KX_NavMeshObject;
struct KX_Obstacle;
class KX_ObstacleSimulation;
+const int MAX_PATH_LENGTH = 128;
class KX_SteeringActuator : public SCA_IActuator
{
@@ -61,6 +62,12 @@ class KX_SteeringActuator : public SCA_IActuator
KX_Obstacle* m_obstacle;
double m_updateTime;
bool m_isActive;
+ bool m_isSelfTerminated;
+ float m_path[MAX_PATH_LENGTH*3];
+ int m_pathLen;
+ int m_pathUpdatePeriod;
+ double m_pathUpdateTime;
+ int m_wayPointIdx;
public:
enum KX_STEERINGACT_MODE
{
@@ -79,6 +86,8 @@ public:
MT_Scalar velocity,
MT_Scalar acceleration,
MT_Scalar turnspeed,
+ bool isSelfTerminated,
+ int pathUpdatePeriod,
KX_ObstacleSimulation* simulation);
virtual ~KX_SteeringActuator();
virtual bool Update(double curtime, bool frame);