Bullet Collision Detection & Physics Library
|
Go to the documentation of this file.
16 #ifndef BT_SOFT_BODY_CONCAVE_COLLISION_ALGORITHM_H
17 #define BT_SOFT_BODY_CONCAVE_COLLISION_ALGORITHM_H
147 #endif //BT_SOFT_BODY_CONCAVE_COLLISION_ALGORITHM_H
const btCollisionObject * m_triBody
btCollisionObject can be used to manage collision detection objects.
virtual void processTriangle(btVector3 *triangle, int partId, int triangleIndex)
virtual void processCollision(const btCollisionObjectWrapper *body0Wrap, const btCollisionObjectWrapper *body1Wrap, const btDispatcherInfo &dispatchInfo, btManifoldResult *resultOut)
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...
The btDispatcher interface class can be used in combination with broadphase to dispatch calculations ...
btTriIndex(int partId, int triangleIndex, btCollisionShape *shape)
virtual btCollisionAlgorithm * CreateCollisionAlgorithm(btCollisionAlgorithmConstructionInfo &ci, const btCollisionObjectWrapper *body0Wrap, const btCollisionObjectWrapper *body1Wrap)
btSoftBodyConcaveCollisionAlgorithm(const btCollisionAlgorithmConstructionInfo &ci, const btCollisionObjectWrapper *body0Wrap, const btCollisionObjectWrapper *body1Wrap, bool isSwapped)
int m_PartIdTriangleIndex
const btDispatcherInfo * m_dispatchInfoPtr
virtual void * allocateCollisionAlgorithm(int size)=0
#define MAX_NUM_PARTS_IN_BITS
btSoftBodyTriangleCallback(btDispatcher *dispatcher, const btCollisionObjectWrapper *body0Wrap, const btCollisionObjectWrapper *body1Wrap, bool isSwapped)
btCollisionAlgorithm is an collision interface that is compatible with the Broadphase and btDispatche...
The btCollisionShape class provides an interface for collision shapes that can be shared among btColl...
Used by the btCollisionDispatcher to register and create instances for btCollisionAlgorithm.
The btHashMap template class implements a generic and lightweight hashmap.
btHashMap< btHashKey< btTriIndex >, btTriIndex > m_shapeCache
For each triangle in the concave mesh that overlaps with the AABB of a soft body (m_softBody),...
btManifoldResult is a helper class to manage contact results.
virtual ~btSoftBodyTriangleCallback()
void setTimeStepAndCounters(btScalar collisionMarginTriangle, const btCollisionObjectWrapper *triObjWrap, const btDispatcherInfo &dispatchInfo, btManifoldResult *resultOut)
The btTriangleCallback provides a callback for each overlapping triangle when calling processAllTrian...
int getTriangleIndex() const
btVector3 can be used to represent 3D points and vectors.
virtual ~btSoftBodyConcaveCollisionAlgorithm()
btDispatcher * m_dispatcher
virtual void getAllContactManifolds(btManifoldArray &manifoldArray)
btDispatcher * m_dispatcher1
#define SIMD_FORCE_INLINE
The btSoftBody is an class to simulate cloth and volumetric soft bodies.
btSoftBodyTriangleCallback m_btSoftBodyTriangleCallback
const btVector3 & getAabbMin() const
class btCollisionShape * m_childShape
btSoftBodyConcaveCollisionAlgorithm supports collision between soft body shapes and (concave) triange...
const btVector3 & getAabbMax() const
virtual btCollisionAlgorithm * CreateCollisionAlgorithm(btCollisionAlgorithmConstructionInfo &ci, const btCollisionObjectWrapper *body0Wrap, const btCollisionObjectWrapper *body1Wrap)
btManifoldResult * m_resultOut
btScalar calculateTimeOfImpact(btCollisionObject *body0, btCollisionObject *body1, const btDispatcherInfo &dispatchInfo, btManifoldResult *resultOut)
btScalar m_collisionMarginTriangle