Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes
btSoftRigidDynamicsWorld Class Reference

#include <btSoftRigidDynamicsWorld.h>

Inheritance diagram for btSoftRigidDynamicsWorld:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void addSoftBody (btSoftBody *body, short int collisionFilterGroup=btBroadphaseProxy::DefaultFilter, short int collisionFilterMask=btBroadphaseProxy::AllFilter)
 btSoftRigidDynamicsWorld (btDispatcher *dispatcher, btBroadphaseInterface *pairCache, btConstraintSolver *constraintSolver, btCollisionConfiguration *collisionConfiguration, btSoftBodySolver *softBodySolver=0)
virtual void debugDrawWorld ()
int getDrawFlags () const
btSoftBodyArraygetSoftBodyArray ()
const btSoftBodyArraygetSoftBodyArray () const
btSoftBodyWorldInfogetWorldInfo ()
const btSoftBodyWorldInfogetWorldInfo () const
virtual btDynamicsWorldType getWorldType () const
virtual void rayTest (const btVector3 &rayFromWorld, const btVector3 &rayToWorld, RayResultCallback &resultCallback) const
virtual void removeCollisionObject (btCollisionObject *collisionObject)
 removeCollisionObject will first check if it is a rigid body, if so call removeRigidBody otherwise call btDiscreteDynamicsWorld::removeCollisionObject
void removeSoftBody (btSoftBody *body)
virtual void serialize (btSerializer *serializer)
 Preliminary serialization test for Bullet 2.76. Loading those files requires a separate parser (see Bullet/Demos/SerializeDemo)
void setDrawFlags (int f)
virtual ~btSoftRigidDynamicsWorld ()

Static Public Member Functions

static void rayTestSingle (const btTransform &rayFromTrans, const btTransform &rayToTrans, btCollisionObject *collisionObject, const btCollisionShape *collisionShape, const btTransform &colObjWorldTransform, RayResultCallback &resultCallback)

Protected Member Functions

virtual void internalSingleStepSimulation (btScalar timeStep)
virtual void predictUnconstraintMotion (btScalar timeStep)
void serializeSoftBodies (btSerializer *serializer)
void solveSoftBodiesConstraints (btScalar timeStep)

Private Attributes

bool m_drawClusterTree
bool m_drawFaceTree
int m_drawFlags
bool m_drawNodeTree
bool m_ownsSolver
btSoftBodyWorldInfo m_sbi
btSoftBodyArray m_softBodies
btSoftBodySolverm_softBodySolver
 Solver classes that encapsulate multiple soft bodies for solving.

Detailed Description

Definition at line 26 of file btSoftRigidDynamicsWorld.h.


Constructor & Destructor Documentation

btSoftRigidDynamicsWorld::btSoftRigidDynamicsWorld ( btDispatcher dispatcher,
btBroadphaseInterface pairCache,
btConstraintSolver constraintSolver,
btCollisionConfiguration collisionConfiguration,
btSoftBodySolver softBodySolver = 0 
)

Member Function Documentation

void btSoftRigidDynamicsWorld::addSoftBody ( btSoftBody body,
short int  collisionFilterGroup = btBroadphaseProxy::DefaultFilter,
short int  collisionFilterMask = btBroadphaseProxy::AllFilter 
)
virtual void btSoftRigidDynamicsWorld::debugDrawWorld ( ) [virtual]

Reimplemented from btDiscreteDynamicsWorld.

Definition at line 64 of file btSoftRigidDynamicsWorld.h.

Definition at line 81 of file btSoftRigidDynamicsWorld.h.

Definition at line 86 of file btSoftRigidDynamicsWorld.h.

Definition at line 67 of file btSoftRigidDynamicsWorld.h.

Definition at line 71 of file btSoftRigidDynamicsWorld.h.

virtual btDynamicsWorldType btSoftRigidDynamicsWorld::getWorldType ( ) const [inline, virtual]

Reimplemented from btDiscreteDynamicsWorld.

Definition at line 76 of file btSoftRigidDynamicsWorld.h.

virtual void btSoftRigidDynamicsWorld::internalSingleStepSimulation ( btScalar  timeStep) [protected, virtual]

Reimplemented from btDiscreteDynamicsWorld.

virtual void btSoftRigidDynamicsWorld::predictUnconstraintMotion ( btScalar  timeStep) [protected, virtual]

Reimplemented from btDiscreteDynamicsWorld.

virtual void btSoftRigidDynamicsWorld::rayTest ( const btVector3 &  rayFromWorld,
const btVector3 &  rayToWorld,
RayResultCallback resultCallback 
) const [virtual]

rayTest performs a raycast on all objects in the btCollisionWorld, and calls the resultCallback This allows for several queries: first hit, all hits, any hit, dependent on the value returned by the callback.

Reimplemented from btCollisionWorld.

static void btSoftRigidDynamicsWorld::rayTestSingle ( const btTransform rayFromTrans,
const btTransform rayToTrans,
btCollisionObject *  collisionObject,
const btCollisionShape collisionShape,
const btTransform colObjWorldTransform,
RayResultCallback resultCallback 
) [static]

rayTestSingle performs a raycast call and calls the resultCallback. It is used internally by rayTest. In a future implementation, we consider moving the ray test as a virtual method in btCollisionShape. This allows more customization.

Reimplemented from btCollisionWorld.

virtual void btSoftRigidDynamicsWorld::removeCollisionObject ( btCollisionObject *  collisionObject) [virtual]

removeCollisionObject will first check if it is a rigid body, if so call removeRigidBody otherwise call btDiscreteDynamicsWorld::removeCollisionObject

Reimplemented from btDiscreteDynamicsWorld.

virtual void btSoftRigidDynamicsWorld::serialize ( btSerializer serializer) [virtual]

Preliminary serialization test for Bullet 2.76. Loading those files requires a separate parser (see Bullet/Demos/SerializeDemo)

Reimplemented from btDiscreteDynamicsWorld.

void btSoftRigidDynamicsWorld::serializeSoftBodies ( btSerializer serializer) [protected]
void btSoftRigidDynamicsWorld::setDrawFlags ( int  f) [inline]

Definition at line 65 of file btSoftRigidDynamicsWorld.h.


Member Data Documentation

Definition at line 33 of file btSoftRigidDynamicsWorld.h.

Definition at line 32 of file btSoftRigidDynamicsWorld.h.

Definition at line 30 of file btSoftRigidDynamicsWorld.h.

Definition at line 31 of file btSoftRigidDynamicsWorld.h.

Definition at line 37 of file btSoftRigidDynamicsWorld.h.

Definition at line 34 of file btSoftRigidDynamicsWorld.h.

Definition at line 29 of file btSoftRigidDynamicsWorld.h.

Solver classes that encapsulate multiple soft bodies for solving.

Definition at line 36 of file btSoftRigidDynamicsWorld.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:33