Changeset View
Changeset View
Standalone View
Standalone View
source/gameengine/Ketsji/KX_SteeringActuator.h
| Show First 20 Lines • Show All 56 Lines • ▼ Show 20 Lines | class KX_SteeringActuator : public SCA_IActuator | ||||
| bool m_isSelfTerminated; | bool m_isSelfTerminated; | ||||
| bool m_enableVisualization; | bool m_enableVisualization; | ||||
| short m_facingMode; | short m_facingMode; | ||||
| bool m_normalUp; | bool m_normalUp; | ||||
| float m_path[MAX_PATH_LENGTH*3]; | float m_path[MAX_PATH_LENGTH*3]; | ||||
| int m_pathLen; | int m_pathLen; | ||||
| int m_pathUpdatePeriod; | int m_pathUpdatePeriod; | ||||
| double m_pathUpdateTime; | double m_pathUpdateTime; | ||||
| float m_velzfactor; | |||||
| int m_wayPointIdx; | int m_wayPointIdx; | ||||
| MT_Matrix3x3 m_parentlocalmat; | MT_Matrix3x3 m_parentlocalmat; | ||||
| MT_Vector3 m_steerVec; | MT_Vector3 m_steerVec; | ||||
| void HandleActorFace(MT_Vector3& velocity); | void HandleActorFace(MT_Vector3& velocity); | ||||
| public: | public: | ||||
| enum KX_STEERINGACT_MODE | enum KX_STEERINGACT_MODE | ||||
| { | { | ||||
| KX_STEERING_NODEF = 0, | KX_STEERING_NODEF = 0, | ||||
| Show All 11 Lines | KX_SteeringActuator(class SCA_IObject* gameobj, | ||||
| float velocity, | float velocity, | ||||
| float acceleration, | float acceleration, | ||||
| float turnspeed, | float turnspeed, | ||||
| bool isSelfTerminated, | bool isSelfTerminated, | ||||
| int pathUpdatePeriod, | int pathUpdatePeriod, | ||||
| KX_ObstacleSimulation* simulation, | KX_ObstacleSimulation* simulation, | ||||
| short facingmode, | short facingmode, | ||||
| bool normalup, | bool normalup, | ||||
| bool enableVisualization); | bool enableVisualization, | ||||
| float velzfactor); | |||||
| virtual ~KX_SteeringActuator(); | virtual ~KX_SteeringActuator(); | ||||
| virtual bool Update(double curtime, bool frame); | virtual bool Update(double curtime, bool frame); | ||||
| virtual CValue* GetReplica(); | virtual CValue* GetReplica(); | ||||
| virtual void ProcessReplica(); | virtual void ProcessReplica(); | ||||
| virtual void ReParent(SCA_IObject* parent); | virtual void ReParent(SCA_IObject* parent); | ||||
| virtual void Relink(CTR_Map<CTR_HashedPtr, void*> *obj_map); | virtual void Relink(CTR_Map<CTR_HashedPtr, void*> *obj_map); | ||||
| virtual bool UnlinkObject(SCA_IObject* clientobj); | virtual bool UnlinkObject(SCA_IObject* clientobj); | ||||
| Show All 21 Lines | |||||