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

btDynamicsWorld Class Reference

#include <btDynamicsWorld.h>

Inheritance diagram for btDynamicsWorld:

btCollisionWorld btDiscreteDynamicsWorld btSimpleDynamicsWorld

List of all members.


Detailed Description

btDynamicsWorld is the baseclass for several dynamics implementation, basic, discrete, parallel, and continuous

Definition at line 26 of file btDynamicsWorld.h.


Public Member Functions

void addCollisionObject (btCollisionObject *collisionObject, short int collisionFilterGroup=1, short int collisionFilterMask=1)
virtual void addConstraint (btTypedConstraint *constraint, bool disableCollisionsBetweenLinkedBodies=false)
virtual void addRigidBody (btRigidBody *body)=0
virtual void addVehicle (btRaycastVehicle *vehicle)
 btDynamicsWorld (btDispatcher *dispatcher, btOverlappingPairCache *pairCache)
btBroadphaseInterfacegetBroadphase ()
const btCollisionObjectArraygetCollisionObjectArray () const
btCollisionObjectArraygetCollisionObjectArray ()
virtual const btTypedConstraintgetConstraint (int index) const
virtual btTypedConstraintgetConstraint (int index)
virtual btIDebugDraw * getDebugDrawer ()=0
btDispatchergetDispatcher ()
btDispatcherInfo & getDispatchInfo ()
int getNumCollisionObjects () const
virtual int getNumConstraints () const
btOverlappingPairCachegetPairCache ()
virtual void performDiscreteCollisionDetection ()
void rayTest (const btVector3 &rayFromWorld, const btVector3 &rayToWorld, RayResultCallback &resultCallback, short int collisionFilterMask=-1)
void removeCollisionObject (btCollisionObject *collisionObject)
virtual void removeConstraint (btTypedConstraint *constraint)
virtual void removeRigidBody (btRigidBody *body)=0
virtual void removeVehicle (btRaycastVehicle *vehicle)
virtual void setConstraintSolver (btConstraintSolver *solver)=0
virtual void setDebugDrawer (btIDebugDraw *debugDrawer)=0
virtual void setGravity (const btVector3 &gravity)=0
virtual int stepSimulation (btScalar timeStep, int maxSubSteps=1, btScalar fixedTimeStep=btScalar(1.)/btScalar(60.))=0
virtual void updateAabbs ()=0

Static Public Member Functions

static void objectQuerySingle (const btConvexShape *castShape, const btTransform &rayFromTrans, const btTransform &rayToTrans, btCollisionObject *collisionObject, const btCollisionShape *collisionShape, const btTransform &colObjWorldTransform, RayResultCallback &resultCallback, short int collisionFilterMask=-1)
 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, short int collisionFilterMask=-1)

Protected Attributes

btOverlappingPairCachem_broadphasePairCache
btAlignedObjectArray
< btCollisionObject * > 
m_collisionObjects
btDispatcherm_dispatcher1
btDispatcherInfo m_dispatchInfo
bool m_ownsBroadphasePairCache
bool m_ownsDispatcher
btStackAllocm_stackAlloc

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

Generated by  Doxygen 1.6.0   Back to index