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

btSimpleDynamicsWorld Class Reference

#include <btSimpleDynamicsWorld.h>

Inheritance diagram for btSimpleDynamicsWorld:

btDynamicsWorld btCollisionWorld

List of all members.


Detailed Description

btSimpleDynamicsWorld demonstrates very basic usage of Bullet rigid body dynamics It can be used for basic simulations, and as a starting point for porting Bullet btSimpleDynamicsWorld lacks object deactivation, island management and other concepts. For more complicated simulations, btDiscreteDynamicsWorld and btContinuousDynamicsWorld are recommended those classes replace the obsolete CcdPhysicsEnvironment/CcdPhysicsController

Definition at line 30 of file btSimpleDynamicsWorld.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)
virtual void addVehicle (btRaycastVehicle *vehicle)
 btSimpleDynamicsWorld (btDispatcher *dispatcher, btOverlappingPairCache *pairCache, btConstraintSolver *constraintSolver)
 this btSimpleDynamicsWorld constructor creates dispatcher, broadphase pairCache and constraintSolver
btBroadphaseInterfacegetBroadphase ()
const btCollisionObjectArraygetCollisionObjectArray () const
btCollisionObjectArraygetCollisionObjectArray ()
virtual const btTypedConstraintgetConstraint (int index) const
virtual btTypedConstraintgetConstraint (int index)
virtual btIDebugDraw * getDebugDrawer ()
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)
virtual void removeVehicle (btRaycastVehicle *vehicle)
virtual void setConstraintSolver (btConstraintSolver *solver)
virtual void setDebugDrawer (btIDebugDraw *debugDrawer)
virtual void setGravity (const btVector3 &gravity)
virtual int stepSimulation (btScalar timeStep, int maxSubSteps=1, btScalar fixedTimeStep=btScalar(1.)/btScalar(60.))
 maxSubSteps/fixedTimeStep for interpolation is currently ignored for btSimpleDynamicsWorld, use btDiscreteDynamicsWorld instead
void synchronizeMotionStates ()
virtual void updateAabbs ()

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 Member Functions

void integrateTransforms (btScalar timeStep)
void predictUnconstraintMotion (btScalar timeStep)

Protected Attributes

btOverlappingPairCachem_broadphasePairCache
btAlignedObjectArray
< btCollisionObject * > 
m_collisionObjects
btConstraintSolverm_constraintSolver
btIDebugDraw * m_debugDrawer
btDispatcherm_dispatcher1
btDispatcherInfo m_dispatchInfo
btVector3 m_gravity
bool m_ownsBroadphasePairCache
bool m_ownsConstraintSolver
bool m_ownsDispatcher
btStackAllocm_stackAlloc

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

Generated by  Doxygen 1.6.0   Back to index