Bullet Collision Detection & Physics Library
Classes | Public Member Functions | Private Attributes | List of all members
btSoftRigidCollisionAlgorithm Class Reference

btSoftRigidCollisionAlgorithm provides collision detection between btSoftBody and btRigidBody More...

#include <btSoftRigidCollisionAlgorithm.h>

Inheritance diagram for btSoftRigidCollisionAlgorithm:
Inheritance graph
[legend]
Collaboration diagram for btSoftRigidCollisionAlgorithm:
Collaboration graph
[legend]

Classes

struct  CreateFunc
 

Public Member Functions

 btSoftRigidCollisionAlgorithm (btPersistentManifold *mf, const btCollisionAlgorithmConstructionInfo &ci, const btCollisionObjectWrapper *col0, const btCollisionObjectWrapper *col1Wrap, bool isSwapped)
 TODO: include all the shapes that the softbody can collide with alternatively, implement special case collision algorithms (just like for rigid collision shapes) More...
 
virtual ~btSoftRigidCollisionAlgorithm ()
 
virtual void processCollision (const btCollisionObjectWrapper *body0Wrap, const btCollisionObjectWrapper *body1Wrap, const btDispatcherInfo &dispatchInfo, btManifoldResult *resultOut)
 
virtual btScalar calculateTimeOfImpact (btCollisionObject *body0, btCollisionObject *body1, const btDispatcherInfo &dispatchInfo, btManifoldResult *resultOut)
 
virtual void getAllContactManifolds (btManifoldArray &manifoldArray)
 
- Public Member Functions inherited from btCollisionAlgorithm
 btCollisionAlgorithm ()
 
 btCollisionAlgorithm (const btCollisionAlgorithmConstructionInfo &ci)
 
virtual ~btCollisionAlgorithm ()
 

Private Attributes

btSoftBodym_softBody
 
btCollisionObjectm_rigidCollisionObject
 
bool m_isSwapped
 for rigid versus soft (instead of soft versus rigid), we use this swapped boolean More...
 

Additional Inherited Members

- Protected Attributes inherited from btCollisionAlgorithm
btDispatcherm_dispatcher
 

Detailed Description

btSoftRigidCollisionAlgorithm provides collision detection between btSoftBody and btRigidBody

Definition at line 29 of file btSoftRigidCollisionAlgorithm.h.

Constructor & Destructor Documentation

btSoftRigidCollisionAlgorithm::btSoftRigidCollisionAlgorithm ( btPersistentManifold mf,
const btCollisionAlgorithmConstructionInfo ci,
const btCollisionObjectWrapper col0,
const btCollisionObjectWrapper col1Wrap,
bool  isSwapped 
)

TODO: include all the shapes that the softbody can collide with alternatively, implement special case collision algorithms (just like for rigid collision shapes)

Definition at line 30 of file btSoftRigidCollisionAlgorithm.cpp.

btSoftRigidCollisionAlgorithm::~btSoftRigidCollisionAlgorithm ( )
virtual

Definition at line 39 of file btSoftRigidCollisionAlgorithm.cpp.

Member Function Documentation

btScalar btSoftRigidCollisionAlgorithm::calculateTimeOfImpact ( btCollisionObject body0,
btCollisionObject body1,
const btDispatcherInfo dispatchInfo,
btManifoldResult resultOut 
)
virtual

Implements btCollisionAlgorithm.

Definition at line 74 of file btSoftRigidCollisionAlgorithm.cpp.

virtual void btSoftRigidCollisionAlgorithm::getAllContactManifolds ( btManifoldArray manifoldArray)
inlinevirtual

Implements btCollisionAlgorithm.

Definition at line 50 of file btSoftRigidCollisionAlgorithm.h.

void btSoftRigidCollisionAlgorithm::processCollision ( const btCollisionObjectWrapper body0Wrap,
const btCollisionObjectWrapper body1Wrap,
const btDispatcherInfo dispatchInfo,
btManifoldResult resultOut 
)
virtual

Implements btCollisionAlgorithm.

Definition at line 56 of file btSoftRigidCollisionAlgorithm.cpp.

Member Data Documentation

bool btSoftRigidCollisionAlgorithm::m_isSwapped
private

for rigid versus soft (instead of soft versus rigid), we use this swapped boolean

Definition at line 38 of file btSoftRigidCollisionAlgorithm.h.

btCollisionObject* btSoftRigidCollisionAlgorithm::m_rigidCollisionObject
private

Definition at line 35 of file btSoftRigidCollisionAlgorithm.h.

btSoftBody* btSoftRigidCollisionAlgorithm::m_softBody
private

Definition at line 34 of file btSoftRigidCollisionAlgorithm.h.


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