My Project
|
ParaPhysics core interface. More...
#include <IParaPhysics.h>
Public Member Functions | |
virtual bool | InitPhysics ()=0 |
create and initialize all physics lib and create the default scene(world) | |
virtual bool | StepSimulation (float fDeltaTime)=0 |
step simulation More... | |
virtual bool | ExitPhysics ()=0 |
cleanup all physics entities. | |
virtual void | Release ()=0 |
all this to unload the IPhysics. More... | |
virtual IParaPhysicsShape * | CreateTriangleMeshShap (const ParaPhysicsTriangleMeshDesc &meshDesc)=0 |
create a triangle shape. More... | |
virtual void | ReleaseShape (IParaPhysicsShape *pShape)=0 |
release a physics shape | |
virtual IParaPhysicsActor * | CreateActor (const ParaPhysicsActorDesc &meshDesc)=0 |
create an physics actor(rigid body) in the current world. More... | |
virtual void | ReleaseActor (IParaPhysicsActor *pActor)=0 |
release a physics actor | |
virtual IParaPhysicsActor * | RaycastClosestShape (const PARAVECTOR3 &vOrigin, const PARAVECTOR3 &vDirection, DWORD dwType, RayCastHitResult &hit, short dwGroupMask, float fSensorRange)=0 |
ray cast a given group. More... | |
virtual void | SetDebugDrawer (IParaDebugDraw *debugDrawer)=0 |
set the debug draw object for debugging physics world. More... | |
virtual IParaDebugDraw * | GetDebugDrawer ()=0 |
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)=0 |
draw a given object. More... | |
virtual void | DebugDrawWorld ()=0 |
draw the entire physics debug world. More... | |
virtual void | SetDebugDrawMode (int debugMode)=0 |
bitwise of PhysicsDebugDrawModes | |
virtual int | GetDebugDrawMode ()=0 |
bitwise of PhysicsDebugDrawModes | |
ParaPhysics core interface.
|
pure virtual |
create an physics actor(rigid body) in the current world.
Implemented in ParaEngine::CParaPhysicsWorld, and ParaEngine::CParaPhysicsImp.
|
pure virtual |
create a triangle shape.
Implemented in ParaEngine::CParaPhysicsWorld, and ParaEngine::CParaPhysicsImp.
|
pure virtual |
draw a given object.
Implemented in ParaEngine::CParaPhysicsWorld, and ParaEngine::CParaPhysicsImp.
|
pure virtual |
draw the entire physics debug world.
Implemented in ParaEngine::CParaPhysicsWorld, and ParaEngine::CParaPhysicsImp.
|
pure virtual |
Get the debug draw object for debugging physics world.
Implemented in ParaEngine::CParaPhysicsWorld, and ParaEngine::CParaPhysicsImp.
|
pure virtual |
ray cast a given group.
Implemented in ParaEngine::CParaPhysicsWorld, and ParaEngine::CParaPhysicsImp.
|
pure virtual |
all this to unload the IPhysics.
Pointer to this class will be invalid after the call
Implemented in ParaEngine::CParaPhysicsWorld, and ParaEngine::CParaPhysicsImp.
|
pure virtual |
set the debug draw object for debugging physics world.
Implemented in ParaEngine::CParaPhysicsWorld, and ParaEngine::CParaPhysicsImp.
|
pure virtual |
step simulation
fDeltaTime | in seconds. |
Implemented in ParaEngine::CParaPhysicsWorld, and ParaEngine::CParaPhysicsImp.