Logo Search packages:      
Sourcecode: blender version File versions  Download package

btDynamicsWorld Class Reference

#include <btDynamicsWorld.h>

Inheritance diagram for btDynamicsWorld:

btCollisionWorld btDiscreteDynamicsWorld btSimpleDynamicsWorld btContinuousDynamicsWorld

List of all members.


Detailed Description

The btDynamicsWorld is the interface class for several dynamics implementation, basic, discrete, parallel, and continuous etc.

Definition at line 39 of file btDynamicsWorld.h.


Public Member Functions

virtual void addAction (btActionInterface *action)=0
virtual void addCharacter (btActionInterface *character)
 obsolete, use addAction instead.
void addCollisionObject (btCollisionObject *collisionObject, short int collisionFilterGroup=btBroadphaseProxy::DefaultFilter, short int collisionFilterMask=btBroadphaseProxy::AllFilter)
virtual void addConstraint (btTypedConstraint *constraint, bool disableCollisionsBetweenLinkedBodies=false)
virtual void addRigidBody (btRigidBody *body)=0
virtual void addVehicle (btActionInterface *vehicle)
 obsolete, use addAction instead.
 btDynamicsWorld (btDispatcher *dispatcher, btBroadphaseInterface *broadphase, btCollisionConfiguration *collisionConfiguration)
virtual void clearForces ()=0
void convexSweepTest (const btConvexShape *castShape, const btTransform &from, const btTransform &to, ConvexResultCallback &resultCallback, btScalar allowedCcdPenetration=btScalar(0.)) const
virtual void debugDrawWorld ()=0
btBroadphaseInterfacegetBroadphase ()
const btBroadphaseInterfacegetBroadphase () const
const btCollisionObjectArraygetCollisionObjectArray () const
btCollisionObjectArraygetCollisionObjectArray ()
virtual const btTypedConstraintgetConstraint (int index) const
virtual btTypedConstraintgetConstraint (int index)
virtual btConstraintSolvergetConstraintSolver ()=0
virtual btIDebugDrawgetDebugDrawer ()
const btDispatchergetDispatcher () const
btDispatchergetDispatcher ()
const btDispatcherInfo & getDispatchInfo () const
btDispatcherInfo & getDispatchInfo ()
virtual btVector3 getGravity () const =0
int getNumCollisionObjects () const
virtual int getNumConstraints () const
btOverlappingPairCachegetPairCache ()
btContactSolverInfo & getSolverInfo ()
virtual btDynamicsWorldType getWorldType () const =0
void * getWorldUserInfo () const
virtual void performDiscreteCollisionDetection ()
void rayTest (const btVector3 &rayFromWorld, const btVector3 &rayToWorld, RayResultCallback &resultCallback) const
virtual void removeAction (btActionInterface *action)=0
virtual void removeCharacter (btActionInterface *character)
 obsolete, use removeAction instead
void removeCollisionObject (btCollisionObject *collisionObject)
virtual void removeConstraint (btTypedConstraint *constraint)
virtual void removeRigidBody (btRigidBody *body)=0
virtual void removeVehicle (btActionInterface *vehicle)
 obsolete, use removeAction instead
void setBroadphase (btBroadphaseInterface *pairCache)
virtual void setConstraintSolver (btConstraintSolver *solver)=0
virtual void setDebugDrawer (btIDebugDraw *debugDrawer)
virtual void setGravity (const btVector3 &gravity)=0
void setInternalTickCallback (btInternalTickCallback cb, void *worldUserInfo=0)
 Set the callback for when an internal tick (simulation substep) happens, optional user info.
void setWorldUserInfo (void *worldUserInfo)
virtual int stepSimulation (btScalar timeStep, int maxSubSteps=1, btScalar fixedTimeStep=btScalar(1.)/btScalar(60.))=0
virtual void synchronizeMotionStates ()=0
virtual void updateAabbs ()
void updateSingleAabb (btCollisionObject *colObj)

Static Public Member Functions

static void objectQuerySingle (const btConvexShape *castShape, const btTransform &rayFromTrans, const btTransform &rayToTrans, btCollisionObject *collisionObject, const btCollisionShape *collisionShape, const btTransform &colObjWorldTransform, ConvexResultCallback &resultCallback, btScalar allowedPenetration)
 objectQuerySingle performs a collision detection query and calls the resultCallback. It is used internally by rayTest.
static void rayTestSingle (const btTransform &rayFromTrans, const btTransform &rayToTrans, btCollisionObject *collisionObject, const btCollisionShape *collisionShape, const btTransform &colObjWorldTransform, RayResultCallback &resultCallback)

Protected Attributes

btBroadphaseInterfacem_broadphasePairCache
btAlignedObjectArray
< btCollisionObject * > 
m_collisionObjects
btIDebugDrawm_debugDrawer
btDispatcherm_dispatcher1
btDispatcherInfo m_dispatchInfo
btInternalTickCallback m_internalTickCallback
btContactSolverInfo m_solverInfo
btStackAllocm_stackAlloc
void * m_worldUserInfo

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

Generated by  Doxygen 1.6.0   Back to index