My Project
Public Member Functions | List of all members
ParaEngine::IParaPhysics Class Referenceabstract

ParaPhysics core interface. More...

#include <IParaPhysics.h>

Inheritance diagram for ParaEngine::IParaPhysics:
ParaEngine::CParaPhysicsImp ParaEngine::CParaPhysicsWorld

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 IParaPhysicsShapeCreateTriangleMeshShap (const ParaPhysicsTriangleMeshDesc &meshDesc)=0
 create a triangle shape. More...
 
virtual void ReleaseShape (IParaPhysicsShape *pShape)=0
 release a physics shape
 
virtual IParaPhysicsActorCreateActor (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 IParaPhysicsActorRaycastClosestShape (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 IParaDebugDrawGetDebugDrawer ()=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
 

Detailed Description

ParaPhysics core interface.

Member Function Documentation

§ CreateActor()

virtual IParaPhysicsActor* ParaEngine::IParaPhysics::CreateActor ( const ParaPhysicsActorDesc meshDesc)
pure virtual

create an physics actor(rigid body) in the current world.

Implemented in ParaEngine::CParaPhysicsWorld, and ParaEngine::CParaPhysicsImp.

§ CreateTriangleMeshShap()

virtual IParaPhysicsShape* ParaEngine::IParaPhysics::CreateTriangleMeshShap ( const ParaPhysicsTriangleMeshDesc meshDesc)
pure virtual

create a triangle shape.

Returns
: the triangle shape pointer is returned.

Implemented in ParaEngine::CParaPhysicsWorld, and ParaEngine::CParaPhysicsImp.

§ DebugDrawObject()

virtual void ParaEngine::IParaPhysics::DebugDrawObject ( const PARAVECTOR3 vOrigin,
const PARAMATRIX3x3 vRotation,
const IParaPhysicsShape pShape,
const PARAVECTOR3 color 
)
pure virtual

draw a given object.

Implemented in ParaEngine::CParaPhysicsWorld, and ParaEngine::CParaPhysicsImp.

§ DebugDrawWorld()

virtual void ParaEngine::IParaPhysics::DebugDrawWorld ( )
pure virtual

draw the entire physics debug world.

Implemented in ParaEngine::CParaPhysicsWorld, and ParaEngine::CParaPhysicsImp.

§ GetDebugDrawer()

virtual IParaDebugDraw* ParaEngine::IParaPhysics::GetDebugDrawer ( )
pure virtual

Get the debug draw object for debugging physics world.

Implemented in ParaEngine::CParaPhysicsWorld, and ParaEngine::CParaPhysicsImp.

§ RaycastClosestShape()

virtual IParaPhysicsActor* ParaEngine::IParaPhysics::RaycastClosestShape ( const PARAVECTOR3 vOrigin,
const PARAVECTOR3 vDirection,
DWORD  dwType,
RayCastHitResult hit,
short  dwGroupMask,
float  fSensorRange 
)
pure virtual

ray cast a given group.

Implemented in ParaEngine::CParaPhysicsWorld, and ParaEngine::CParaPhysicsImp.

§ Release()

virtual void ParaEngine::IParaPhysics::Release ( )
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.

§ SetDebugDrawer()

virtual void ParaEngine::IParaPhysics::SetDebugDrawer ( IParaDebugDraw debugDrawer)
pure virtual

set the debug draw object for debugging physics world.

Implemented in ParaEngine::CParaPhysicsWorld, and ParaEngine::CParaPhysicsImp.

§ StepSimulation()

virtual bool ParaEngine::IParaPhysics::StepSimulation ( float  fDeltaTime)
pure virtual

step simulation

Parameters
fDeltaTimein seconds.

Implemented in ParaEngine::CParaPhysicsWorld, and ParaEngine::CParaPhysicsImp.


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