Blender V2.61 - r43446
Public Member Functions | Protected Member Functions | Protected Attributes

KX_ObstacleSimulation Class Reference

#include <KX_ObstacleSimulation.h>

Inheritance diagram for KX_ObstacleSimulation:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 KX_ObstacleSimulation (MT_Scalar levelHeight, bool enableVisualization)
virtual ~KX_ObstacleSimulation ()
void DrawObstacles ()
void AddObstacleForObj (KX_GameObject *gameobj)
void DestroyObstacleForObj (KX_GameObject *gameobj)
void AddObstaclesForNavMesh (KX_NavMeshObject *navmesh)
KX_ObstacleGetObstacle (KX_GameObject *gameobj)
void UpdateObstacles ()
virtual void AdjustObstacleVelocity (KX_Obstacle *activeObst, KX_NavMeshObject *activeNavMeshObj, MT_Vector3 &velocity, MT_Scalar maxDeltaSpeed, MT_Scalar maxDeltaAngle)

Protected Member Functions

KX_ObstacleCreateObstacle (KX_GameObject *gameobj)

Protected Attributes

KX_Obstacles m_obstacles
MT_Scalar m_levelHeight
bool m_enableVisualization

Detailed Description

Definition at line 69 of file KX_ObstacleSimulation.h.


Constructor & Destructor Documentation

KX_ObstacleSimulation::KX_ObstacleSimulation ( MT_Scalar  levelHeight,
bool  enableVisualization 
)

Definition at line 216 of file KX_ObstacleSimulation.cpp.

KX_ObstacleSimulation::~KX_ObstacleSimulation ( ) [virtual]

Definition at line 223 of file KX_ObstacleSimulation.cpp.

References i, and m_obstacles.


Member Function Documentation

void KX_ObstacleSimulation::AddObstacleForObj ( KX_GameObject gameobj)
void KX_ObstacleSimulation::AddObstaclesForNavMesh ( KX_NavMeshObject navmesh)
void KX_ObstacleSimulation::AdjustObstacleVelocity ( KX_Obstacle activeObst,
KX_NavMeshObject activeNavMeshObj,
MT_Vector3 velocity,
MT_Scalar  maxDeltaSpeed,
MT_Scalar  maxDeltaAngle 
) [virtual]

Reimplemented in KX_ObstacleSimulationTOI.

Definition at line 336 of file KX_ObstacleSimulation.cpp.

Referenced by KX_SteeringActuator::Update().

KX_Obstacle * KX_ObstacleSimulation::CreateObstacle ( KX_GameObject gameobj) [protected]
void KX_ObstacleSimulation::DestroyObstacleForObj ( KX_GameObject gameobj)
void KX_ObstacleSimulation::DrawObstacles ( )
KX_Obstacle * KX_ObstacleSimulation::GetObstacle ( KX_GameObject gameobj)

Definition at line 325 of file KX_ObstacleSimulation.cpp.

References i, m_obstacles, and NULL.

Referenced by KX_SteeringActuator::KX_SteeringActuator().

void KX_ObstacleSimulation::UpdateObstacles ( )

Member Data Documentation

Definition at line 75 of file KX_ObstacleSimulation.h.

Referenced by DrawObstacles().


The documentation for this class was generated from the following files: