My Project
|
Public Types | |
typedef std::set< BulletPhysicsActor * > | BulletPhysicsActor_Map_Type |
typedef std::set< BulletPhysicsShape * > | BulletPhysicsShape_Array_Type |
Public Member Functions | |
virtual bool | InitPhysics () |
create and initialize all physics lib and create the default scene(world) | |
virtual bool | StepSimulation (float fDeltaTime) |
step simulation More... | |
virtual bool | ExitPhysics () |
cleanup all physics entities. | |
virtual void | Release () |
all this to unload the IPhysics. More... | |
virtual IParaPhysicsShape * | CreateTriangleMeshShap (const ParaPhysicsTriangleMeshDesc &meshDesc) |
create a triangle shape. More... | |
virtual void | ReleaseShape (IParaPhysicsShape *pShape) |
release a physics shape | |
virtual IParaPhysicsActor * | CreateActor (const ParaPhysicsActorDesc &meshDesc) |
create an physics actor(rigid body) in the current world. More... | |
virtual void | ReleaseActor (IParaPhysicsActor *pActor) |
release a physics actor. More... | |
virtual IParaPhysicsActor * | RaycastClosestShape (const PARAVECTOR3 &vOrigin, const PARAVECTOR3 &vDirection, DWORD dwType, RayCastHitResult &hit, short dwGroupMask, float fSensorRange) |
ray cast a given group. More... | |
virtual void | SetDebugDrawer (IParaDebugDraw *debugDrawer) |
set the debug draw object for debugging physics world. More... | |
virtual IParaDebugDraw * | GetDebugDrawer () |
Get the debug draw object for debugging physics world. More... | |
virtual void | DebugDrawObject (const PARAVECTOR3 &vOrigin, const PARAMATRIX3x3 &vRotation, const IParaPhysicsShape *pShape, const PARAVECTOR3 &color) |
draw a given object. More... | |
virtual void | DebugDrawWorld () |
draw the entire physics debug world. More... | |
virtual void | SetDebugDrawMode (int debugMode) |
bitwise of PhysicsDebugDrawModes | |
virtual int | GetDebugDrawMode () |
bitwise of PhysicsDebugDrawModes | |
virtual btDynamicsWorld * | GetScene () |
get a pointer to physics scene object | |
Protected Attributes | |
btBroadphaseInterface * | m_broadphase |
btCollisionDispatcher * | m_dispatcher |
btConstraintSolver * | m_solver |
btDefaultCollisionConfiguration * | m_collisionConfiguration |
btDiscreteDynamicsWorld * | m_dynamicsWorld |
btCollisionWorld * | m_collisionWorld |
BulletPhysicsShape_Array_Type | m_collisionShapes |
keep the collision shapes, for deletion/cleanup | |
BulletPhysicsActor_Map_Type | m_actors |
CPhysicsDebugDraw | m_physics_debug_draw |
bool | m_bInvertFaceWinding |
|
virtual |
create an physics actor(rigid body) in the current world.
Implements ParaEngine::IParaPhysics.
|
virtual |
create a triangle shape.
Implements ParaEngine::IParaPhysics.
|
virtual |
draw a given object.
Implements ParaEngine::IParaPhysics.
|
virtual |
draw the entire physics debug world.
Implements ParaEngine::IParaPhysics.
|
virtual |
Get the debug draw object for debugging physics world.
Implements ParaEngine::IParaPhysics.
|
virtual |
ray cast a given group.
Implements ParaEngine::IParaPhysics.
|
virtual |
all this to unload the IPhysics.
Pointer to this class will be invalid after the call
Implements ParaEngine::IParaPhysics.
|
virtual |
release a physics actor.
Implements ParaEngine::IParaPhysics.
|
virtual |
set the debug draw object for debugging physics world.
Implements ParaEngine::IParaPhysics.
|
virtual |