BtWorld

Engine/source/T3D/physics/bullet/btWorld.h

More...

Protected Attributes

btBroadphaseInterface *
btDefaultCollisionConfiguration *
btCollisionDispatcher *
btDynamicsWorld *
btConstraintSolver *

Protected Functions

Public Functions

castRay(const Point3F & start, const Point3F & end, U32 bodyTypes)
bool
castRay(const Point3F & startPnt, const Point3F & endPnt, RayInfo * ri, const Point3F & impulse)

An abstract way to raycast into any type of PhysicsWorld, in a way that mirrors a Torque-style raycast.

Tears down the physics world destroying any existing bodies, joints, and controllers.

explosion(const Point3F & pos, F32 radius, F32 forceMagnitude)
btDynamicsWorld *
bool
bool
initWorld(bool isServer, ProcessList * processList)

Prepare the physics world for use.

bool

Returns true if the physics world is active and simulating.

bool

Overloaded to do debug drawing.

setEnabled(bool enabled)
tickPhysics(U32 elapsedMs)

Detailed Description

Protected Attributes

btBroadphaseInterface * mBroadphase 
btDefaultCollisionConfiguration * mCollisionConfiguration 
BtDebugDraw mDebugDraw 
btCollisionDispatcher * mDispatcher 
btDynamicsWorld * mDynamicsWorld 
F32 mEditorTimeScale 
bool mErrorReport 
bool mIsEnabled 
bool mIsSimulating 
ProcessList * mProcessList 
btConstraintSolver * mSolver 
U32 mTickCount 

Protected Functions

_destroy()

Public Functions

BtWorld()

~BtWorld()

castRay(const Point3F & start, const Point3F & end, U32 bodyTypes)

Reimplemented from: PhysicsWorld

castRay(const Point3F & startPnt, const Point3F & endPnt, RayInfo * ri, const Point3F & impulse)

Reimplemented from: PhysicsWorld

destroyWorld()

Reimplemented from: PhysicsWorld

explosion(const Point3F & pos, F32 radius, F32 forceMagnitude)

Reimplemented from: PhysicsWorld

getDynamicsWorld()

getEditorTimeScale()

getEnabled()

getPhysicsResults()

initWorld(bool isServer, ProcessList * processList)

Reimplemented from: PhysicsWorld

isEnabled()

Reimplemented from: PhysicsWorld

isWritable()

onDebugDraw(const SceneRenderState * state)

Reimplemented from: PhysicsWorld

reset()

Reimplemented from: PhysicsWorld

setEditorTimeScale(F32 timeScale)

setEnabled(bool enabled)

tickPhysics(U32 elapsedMs)