#include <btSoftRigidDynamicsWorld.h>
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 |
btSoftBodyArray & | getSoftBodyArray () |
const btSoftBodyArray & | getSoftBodyArray () const |
btSoftBodyWorldInfo & | getWorldInfo () |
const btSoftBodyWorldInfo & | getWorldInfo () 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 |
btSoftBodySolver * | m_softBodySolver |
Solver classes that encapsulate multiple soft bodies for solving. |
Definition at line 26 of file btSoftRigidDynamicsWorld.h.
btSoftRigidDynamicsWorld::btSoftRigidDynamicsWorld | ( | btDispatcher * | dispatcher, |
btBroadphaseInterface * | pairCache, | ||
btConstraintSolver * | constraintSolver, | ||
btCollisionConfiguration * | collisionConfiguration, | ||
btSoftBodySolver * | softBodySolver = 0 |
||
) |
virtual btSoftRigidDynamicsWorld::~btSoftRigidDynamicsWorld | ( | ) | [virtual] |
void btSoftRigidDynamicsWorld::addSoftBody | ( | btSoftBody * | body, |
short int | collisionFilterGroup = btBroadphaseProxy::DefaultFilter , |
||
short int | collisionFilterMask = btBroadphaseProxy::AllFilter |
||
) |
virtual void btSoftRigidDynamicsWorld::debugDrawWorld | ( | ) | [virtual] |
Reimplemented from btDiscreteDynamicsWorld.
int btSoftRigidDynamicsWorld::getDrawFlags | ( | ) | const [inline] |
Definition at line 64 of file btSoftRigidDynamicsWorld.h.
btSoftBodyArray& btSoftRigidDynamicsWorld::getSoftBodyArray | ( | ) | [inline] |
Definition at line 81 of file btSoftRigidDynamicsWorld.h.
const btSoftBodyArray& btSoftRigidDynamicsWorld::getSoftBodyArray | ( | ) | const [inline] |
Definition at line 86 of file btSoftRigidDynamicsWorld.h.
btSoftBodyWorldInfo& btSoftRigidDynamicsWorld::getWorldInfo | ( | ) | [inline] |
Definition at line 67 of file btSoftRigidDynamicsWorld.h.
const btSoftBodyWorldInfo& btSoftRigidDynamicsWorld::getWorldInfo | ( | ) | const [inline] |
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.
void btSoftRigidDynamicsWorld::removeSoftBody | ( | btSoftBody * | body | ) |
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.
void btSoftRigidDynamicsWorld::solveSoftBodiesConstraints | ( | btScalar | timeStep | ) | [protected] |
bool btSoftRigidDynamicsWorld::m_drawClusterTree [private] |
Definition at line 33 of file btSoftRigidDynamicsWorld.h.
bool btSoftRigidDynamicsWorld::m_drawFaceTree [private] |
Definition at line 32 of file btSoftRigidDynamicsWorld.h.
int btSoftRigidDynamicsWorld::m_drawFlags [private] |
Definition at line 30 of file btSoftRigidDynamicsWorld.h.
bool btSoftRigidDynamicsWorld::m_drawNodeTree [private] |
Definition at line 31 of file btSoftRigidDynamicsWorld.h.
bool btSoftRigidDynamicsWorld::m_ownsSolver [private] |
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.