#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) | |
virtual void | debugDrawWorld () |
int | getDrawFlags () const |
const btSoftBodyArray & | getSoftBodyArray () const |
btSoftBodyArray & | getSoftBodyArray () |
const btSoftBodyWorldInfo & | getWorldInfo () const |
btSoftBodyWorldInfo & | getWorldInfo () |
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) |
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 | solveSoftBodiesConstraints () |
void | updateSoftBodies () |
Private Attributes | |
bool | m_drawClusterTree |
bool | m_drawFaceTree |
int | m_drawFlags |
bool | m_drawNodeTree |
btSoftBodyWorldInfo | m_sbi |
btSoftBodyArray | m_softBodies |
Definition at line 24 of file btSoftRigidDynamicsWorld.h.
btSoftRigidDynamicsWorld::btSoftRigidDynamicsWorld | ( | btDispatcher * | dispatcher, | |
btBroadphaseInterface * | pairCache, | |||
btConstraintSolver * | constraintSolver, | |||
btCollisionConfiguration * | collisionConfiguration | |||
) |
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 60 of file btSoftRigidDynamicsWorld.h.
const btSoftBodyArray& btSoftRigidDynamicsWorld::getSoftBodyArray | ( | ) | const [inline] |
Definition at line 78 of file btSoftRigidDynamicsWorld.h.
btSoftBodyArray& btSoftRigidDynamicsWorld::getSoftBodyArray | ( | ) | [inline] |
Definition at line 73 of file btSoftRigidDynamicsWorld.h.
const btSoftBodyWorldInfo& btSoftRigidDynamicsWorld::getWorldInfo | ( | ) | const [inline] |
Definition at line 67 of file btSoftRigidDynamicsWorld.h.
btSoftBodyWorldInfo& btSoftRigidDynamicsWorld::getWorldInfo | ( | ) | [inline] |
Definition at line 63 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 | ) |
void btSoftRigidDynamicsWorld::setDrawFlags | ( | int | f | ) | [inline] |
Definition at line 61 of file btSoftRigidDynamicsWorld.h.
void btSoftRigidDynamicsWorld::solveSoftBodiesConstraints | ( | ) | [protected] |
void btSoftRigidDynamicsWorld::updateSoftBodies | ( | ) | [protected] |
bool btSoftRigidDynamicsWorld::m_drawClusterTree [private] |
Definition at line 31 of file btSoftRigidDynamicsWorld.h.
bool btSoftRigidDynamicsWorld::m_drawFaceTree [private] |
Definition at line 30 of file btSoftRigidDynamicsWorld.h.
int btSoftRigidDynamicsWorld::m_drawFlags [private] |
Definition at line 28 of file btSoftRigidDynamicsWorld.h.
bool btSoftRigidDynamicsWorld::m_drawNodeTree [private] |
Definition at line 29 of file btSoftRigidDynamicsWorld.h.
Definition at line 32 of file btSoftRigidDynamicsWorld.h.
Definition at line 27 of file btSoftRigidDynamicsWorld.h.