Blender V2.61 - r43446
|
#include <KX_ObstacleSimulation.h>
Public Member Functions | |
KX_ObstacleSimulationTOI (MT_Scalar levelHeight, bool enableVisualization) | |
virtual void | AdjustObstacleVelocity (KX_Obstacle *activeObst, KX_NavMeshObject *activeNavMeshObj, MT_Vector3 &velocity, MT_Scalar maxDeltaSpeed, MT_Scalar maxDeltaAngle) |
Protected Member Functions | |
virtual void | sampleRVO (KX_Obstacle *activeObst, KX_NavMeshObject *activeNavMeshObj, const float maxDeltaAngle)=0 |
Protected Attributes | |
int | m_maxSamples |
float | m_minToi |
float | m_maxToi |
float | m_velWeight |
float | m_curVelWeight |
float | m_toiWeight |
float | m_collisionWeight |
Definition at line 94 of file KX_ObstacleSimulation.h.
KX_ObstacleSimulationTOI::KX_ObstacleSimulationTOI | ( | MT_Scalar | levelHeight, |
bool | enableVisualization | ||
) |
Definition at line 412 of file KX_ObstacleSimulation.cpp.
void KX_ObstacleSimulationTOI::AdjustObstacleVelocity | ( | KX_Obstacle * | activeObst, |
KX_NavMeshObject * | activeNavMeshObj, | ||
MT_Vector3 & | velocity, | ||
MT_Scalar | maxDeltaSpeed, | ||
MT_Scalar | maxDeltaAngle | ||
) | [virtual] |
Reimplemented from KX_ObstacleSimulation.
Definition at line 425 of file KX_ObstacleSimulation.cpp.
References KX_Obstacle::dvel, fabs(), find(), KX_ObstacleSimulation::m_obstacles, KX_Obstacle::nvel, sampleRVO(), vadd(), KX_Obstacle::vel, vscale(), vsub(), MT_Tuple3::x(), and MT_Tuple3::y().
virtual void KX_ObstacleSimulationTOI::sampleRVO | ( | KX_Obstacle * | activeObst, |
KX_NavMeshObject * | activeNavMeshObj, | ||
const float | maxDeltaAngle | ||
) | [protected, pure virtual] |
Implemented in KX_ObstacleSimulationTOI_rays, and KX_ObstacleSimulationTOI_cells.
Referenced by AdjustObstacleVelocity().
float KX_ObstacleSimulationTOI::m_collisionWeight [protected] |
float KX_ObstacleSimulationTOI::m_curVelWeight [protected] |
Definition at line 101 of file KX_ObstacleSimulation.h.
Referenced by KX_ObstacleSimulationTOI_cells::KX_ObstacleSimulationTOI_cells(), and KX_ObstacleSimulationTOI_cells::sampleRVO().
int KX_ObstacleSimulationTOI::m_maxSamples [protected] |
float KX_ObstacleSimulationTOI::m_maxToi [protected] |
float KX_ObstacleSimulationTOI::m_minToi [protected] |
Definition at line 98 of file KX_ObstacleSimulation.h.
Referenced by KX_ObstacleSimulationTOI_rays::KX_ObstacleSimulationTOI_rays(), and KX_ObstacleSimulationTOI_rays::sampleRVO().
float KX_ObstacleSimulationTOI::m_toiWeight [protected] |
float KX_ObstacleSimulationTOI::m_velWeight [protected] |