16 #ifndef BT_CONVEX_CONCAVE_COLLISION_ALGORITHM_H
17 #define BT_CONVEX_CONCAVE_COLLISION_ALGORITHM_H
121 #endif //BT_CONVEX_CONCAVE_COLLISION_ALGORITHM_H
virtual ~btConvexConcaveCollisionAlgorithm()
virtual void processCollision(const btCollisionObjectWrapper *body0Wrap, const btCollisionObjectWrapper *body1Wrap, const btDispatcherInfo &dispatchInfo, btManifoldResult *resultOut)
btPersistentManifold is a contact point cache, it stays persistent as long as objects are overlapping...
const btDispatcherInfo * m_dispatchInfoPtr
virtual btCollisionAlgorithm * CreateCollisionAlgorithm(btCollisionAlgorithmConstructionInfo &ci, const btCollisionObjectWrapper *body0Wrap, const btCollisionObjectWrapper *body1Wrap)
btDispatcher * m_dispatcher
btConvexTriangleCallback m_btConvexTriangleCallback
virtual ~btConvexTriangleCallback()
btScalar m_collisionMarginTriangle
This class is not enabled yet (work-in-progress) to more aggressively activate objects.
#define SIMD_FORCE_INLINE
btManifoldResult is a helper class to manage contact results.
const btCollisionObjectWrapper * m_convexBodyWrap
virtual void * allocateCollisionAlgorithm(int size)=0
The btTriangleCallback provides a callback for each overlapping triangle when calling processAllTrian...
btScalar calculateTimeOfImpact(btCollisionObject *body0, btCollisionObject *body1, const btDispatcherInfo &dispatchInfo, btManifoldResult *resultOut)
Used by the btCollisionDispatcher to register and create instances for btCollisionAlgorithm.
btCollisionObject can be used to manage collision detection objects.
void setTimeStepAndCounters(btScalar collisionMarginTriangle, const btDispatcherInfo &dispatchInfo, const btCollisionObjectWrapper *convexBodyWrap, const btCollisionObjectWrapper *triBodyWrap, btManifoldResult *resultOut)
const btVector3 & getAabbMax() const
btVector3 can be used to represent 3D points and vectors.
btConvexConcaveCollisionAlgorithm supports collision between convex shapes and (concave) trianges mes...
virtual btCollisionAlgorithm * CreateCollisionAlgorithm(btCollisionAlgorithmConstructionInfo &ci, const btCollisionObjectWrapper *body0Wrap, const btCollisionObjectWrapper *body1Wrap)
virtual void processTriangle(btVector3 *triangle, int partId, int triangleIndex)
virtual void getAllContactManifolds(btManifoldArray &manifoldArray)
const btCollisionObjectWrapper * m_triBodyWrap
btConvexConcaveCollisionAlgorithm(const btCollisionAlgorithmConstructionInfo &ci, const btCollisionObjectWrapper *body0Wrap, const btCollisionObjectWrapper *body1Wrap, bool isSwapped)
btConvexTriangleCallback(btDispatcher *dispatcher, const btCollisionObjectWrapper *body0Wrap, const btCollisionObjectWrapper *body1Wrap, bool isSwapped)
For each triangle in the concave mesh that overlaps with the AABB of a convex (m_convexProxy), processTriangle is called.
btDispatcher * m_dispatcher1
btPersistentManifold * m_manifoldPtr
const btVector3 & getAabbMin() const
The btDispatcher interface class can be used in combination with broadphase to dispatch calculations ...
btCollisionAlgorithm is an collision interface that is compatible with the Broadphase and btDispatche...
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...
btManifoldResult * m_resultOut