Public Member Functions | Protected Attributes
btDynamicsWorld Class Reference

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

#include <btDynamicsWorld.h>

Inheritance diagram for btDynamicsWorld:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual void addAction (btActionInterface *action)=0
virtual void addCharacter (btActionInterface *character)
 obsolete, use addAction instead.
virtual void addConstraint (btTypedConstraint *constraint, bool disableCollisionsBetweenLinkedBodies=false)
virtual void addRigidBody (btRigidBody *body)=0
virtual void addRigidBody (btRigidBody *body, short group, short mask)=0
virtual void addVehicle (btActionInterface *vehicle)
 obsolete, use addAction instead.
 btDynamicsWorld (btDispatcher *dispatcher, btBroadphaseInterface *broadphase, btCollisionConfiguration *collisionConfiguration)
virtual void clearForces ()=0
virtual void debugDrawWorld ()=0
virtual btTypedConstraintgetConstraint (int index)
virtual const btTypedConstraintgetConstraint (int index) const
virtual btConstraintSolvergetConstraintSolver ()=0
virtual btVector3 getGravity () const =0
virtual int getNumConstraints () const
btContactSolverInfogetSolverInfo ()
virtual btDynamicsWorldType getWorldType () const =0
void * getWorldUserInfo () const
virtual void removeAction (btActionInterface *action)=0
virtual void removeCharacter (btActionInterface *character)
 obsolete, use removeAction instead
virtual void removeConstraint (btTypedConstraint *constraint)
virtual void removeRigidBody (btRigidBody *body)=0
virtual void removeVehicle (btActionInterface *vehicle)
 obsolete, use removeAction instead
virtual void setConstraintSolver (btConstraintSolver *solver)=0
virtual void setGravity (const btVector3 &gravity)=0
void setInternalTickCallback (btInternalTickCallback cb, void *worldUserInfo=0, bool isPreTick=false)
 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 ~btDynamicsWorld ()

Protected Attributes

btInternalTickCallback m_internalPreTickCallback
btInternalTickCallback m_internalTickCallback
btContactSolverInfo m_solverInfo
void * m_worldUserInfo

Detailed Description

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

Definition at line 40 of file btDynamicsWorld.h.


Constructor & Destructor Documentation

btDynamicsWorld::btDynamicsWorld ( btDispatcher dispatcher,
btBroadphaseInterface broadphase,
btCollisionConfiguration collisionConfiguration 
) [inline]

Definition at line 53 of file btDynamicsWorld.h.

virtual btDynamicsWorld::~btDynamicsWorld ( ) [inline, virtual]

Definition at line 58 of file btDynamicsWorld.h.


Member Function Documentation

virtual void btDynamicsWorld::addAction ( btActionInterface action) [pure virtual]
virtual void btDynamicsWorld::addCharacter ( btActionInterface character) [inline, virtual]

obsolete, use addAction instead.

Reimplemented in btDiscreteDynamicsWorld.

Definition at line 142 of file btDynamicsWorld.h.

virtual void btDynamicsWorld::addConstraint ( btTypedConstraint constraint,
bool  disableCollisionsBetweenLinkedBodies = false 
) [inline, virtual]

Reimplemented in btDiscreteDynamicsWorld.

Definition at line 70 of file btDynamicsWorld.h.

virtual void btDynamicsWorld::addRigidBody ( btRigidBody body) [pure virtual]
virtual void btDynamicsWorld::addRigidBody ( btRigidBody body,
short  group,
short  mask 
) [pure virtual]
virtual void btDynamicsWorld::addVehicle ( btActionInterface vehicle) [inline, virtual]

obsolete, use addAction instead.

Reimplemented in btDiscreteDynamicsWorld.

Definition at line 138 of file btDynamicsWorld.h.

virtual void btDynamicsWorld::clearForces ( ) [pure virtual]
virtual void btDynamicsWorld::debugDrawWorld ( ) [pure virtual]
virtual btTypedConstraint* btDynamicsWorld::getConstraint ( int  index) [inline, virtual]

Reimplemented in btDiscreteDynamicsWorld.

Definition at line 100 of file btDynamicsWorld.h.

virtual const btTypedConstraint* btDynamicsWorld::getConstraint ( int  index) const [inline, virtual]

Reimplemented in btDiscreteDynamicsWorld.

Definition at line 102 of file btDynamicsWorld.h.

virtual btVector3 btDynamicsWorld::getGravity ( ) const [pure virtual]
virtual int btDynamicsWorld::getNumConstraints ( ) const [inline, virtual]

Reimplemented in btDiscreteDynamicsWorld.

Definition at line 98 of file btDynamicsWorld.h.

Definition at line 131 of file btDynamicsWorld.h.

virtual btDynamicsWorldType btDynamicsWorld::getWorldType ( ) const [pure virtual]
void* btDynamicsWorld::getWorldUserInfo ( ) const [inline]

Definition at line 126 of file btDynamicsWorld.h.

virtual void btDynamicsWorld::removeAction ( btActionInterface action) [pure virtual]
virtual void btDynamicsWorld::removeCharacter ( btActionInterface character) [inline, virtual]

obsolete, use removeAction instead

Reimplemented in btDiscreteDynamicsWorld.

Definition at line 144 of file btDynamicsWorld.h.

virtual void btDynamicsWorld::removeConstraint ( btTypedConstraint constraint) [inline, virtual]

Reimplemented in btDiscreteDynamicsWorld.

Definition at line 75 of file btDynamicsWorld.h.

virtual void btDynamicsWorld::removeRigidBody ( btRigidBody body) [pure virtual]
virtual void btDynamicsWorld::removeVehicle ( btActionInterface vehicle) [inline, virtual]

obsolete, use removeAction instead

Reimplemented in btDiscreteDynamicsWorld.

Definition at line 140 of file btDynamicsWorld.h.

virtual void btDynamicsWorld::setConstraintSolver ( btConstraintSolver solver) [pure virtual]
virtual void btDynamicsWorld::setGravity ( const btVector3 &  gravity) [pure virtual]
void btDynamicsWorld::setInternalTickCallback ( btInternalTickCallback  cb,
void *  worldUserInfo = 0,
bool  isPreTick = false 
) [inline]

Set the callback for when an internal tick (simulation substep) happens, optional user info.

Definition at line 109 of file btDynamicsWorld.h.

void btDynamicsWorld::setWorldUserInfo ( void *  worldUserInfo) [inline]

Definition at line 121 of file btDynamicsWorld.h.

virtual int btDynamicsWorld::stepSimulation ( btScalar  timeStep,
int  maxSubSteps = 1,
btScalar  fixedTimeStep = btScalar(1.)/btScalar(60.) 
) [pure virtual]

stepSimulation proceeds the simulation over 'timeStep', units in preferably in seconds. By default, Bullet will subdivide the timestep in constant substeps of each 'fixedTimeStep'. in order to keep the simulation real-time, the maximum number of substeps can be clamped to 'maxSubSteps'. You can disable subdividing the timestep/substepping by passing maxSubSteps=0 as second argument to stepSimulation, but in that case you have to keep the timeStep constant.

Implemented in btDiscreteDynamicsWorld, and btSimpleDynamicsWorld.

virtual void btDynamicsWorld::synchronizeMotionStates ( ) [pure virtual]

Member Data Documentation

Definition at line 45 of file btDynamicsWorld.h.

Definition at line 44 of file btDynamicsWorld.h.

Definition at line 48 of file btDynamicsWorld.h.

Definition at line 46 of file btDynamicsWorld.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


bullet
Author(s): Erwin Coumans, ROS package maintained by Tully Foote
autogenerated on Wed Oct 31 2012 07:54:32