16 #ifndef BT_COLLISION__DISPATCHER_H
17 #define BT_COLLISION__DISPATCHER_H
34 #define USE_DISPATCH_REGISTRY_ARRAY 1
170 #endif //BT_COLLISION__DISPATCHER_H
void setDispatcherFlags(int flags)
btCollisionConfiguration * m_collisionConfiguration
btPersistentManifold is a contact point cache, it stays persistent as long as objects are overlapping...
btPersistentManifold * getManifoldByIndexInternal(int index)
void registerCollisionCreateFunc(int proxyType0, int proxyType1, btCollisionAlgorithmCreateFunc *createFunc)
registerCollisionCreateFunc allows registration of custom/alternative collision create functions ...
int getDispatcherFlags() const
btCollisionConfiguration * getCollisionConfiguration()
static DBVT_INLINE btScalar size(const btDbvtVolume &a)
btCollisionConfiguration allows to configure Bullet collision detection stack allocator size...
btCollisionDispatcher supports algorithms that handle ConvexConvex and ConvexConcave collision pairs...
virtual void freeCollisionAlgorithm(void *ptr)
btManifoldResult is a helper class to manage contact results.
void setNearCallback(btNearCallback nearCallback)
virtual void releaseManifold(btPersistentManifold *manifold)
The btOverlappingPairCache provides an interface for overlapping pair management (add, remove, storage), used by the btBroadphaseInterface broadphases.
void setCollisionConfiguration(btCollisionConfiguration *config)
virtual bool needsCollision(const btCollisionObject *body0, const btCollisionObject *body1)
static void defaultNearCallback(btBroadphasePair &collisionPair, btCollisionDispatcher &dispatcher, const btDispatcherInfo &dispatchInfo)
btCollisionAlgorithmCreateFunc * m_doubleDispatch[MAX_BROADPHASE_COLLISION_TYPES][MAX_BROADPHASE_COLLISION_TYPES]
int size() const
return the number of elements in the array
btManifoldResult m_defaultManifoldResult
btCollisionAlgorithm * findAlgorithm(const btCollisionObjectWrapper *body0Wrap, const btCollisionObjectWrapper *body1Wrap, btPersistentManifold *sharedManifold=0)
btAlignedObjectArray< btPersistentManifold * > m_manifoldsPtr
Used by the btCollisionDispatcher to register and create instances for btCollisionAlgorithm.
void(* btNearCallback)(btBroadphasePair &collisionPair, btCollisionDispatcher &dispatcher, const btDispatcherInfo &dispatchInfo)
user can override this nearcallback for collision filtering and more finegrained control over collisi...
const btPersistentManifold * getManifoldByIndexInternal(int index) const
btCollisionObject can be used to manage collision detection objects.
virtual void clearManifold(btPersistentManifold *manifold)
The btIDebugDraw interface class allows hooking up a debug renderer to visually debug simulations...
virtual btPersistentManifold * getNewManifold(const btCollisionObject *b0, const btCollisionObject *b1)
virtual const btPoolAllocator * getInternalManifoldPool() const
btNearCallback m_nearCallback
btCollisionDispatcher(btCollisionConfiguration *collisionConfiguration)
The btPoolAllocator class allows to efficiently allocate a large pool of objects, instead of dynamica...
virtual void dispatchAllCollisionPairs(btOverlappingPairCache *pairCache, const btDispatcherInfo &dispatchInfo, btDispatcher *dispatcher)
const btCollisionConfiguration * getCollisionConfiguration() const
btPoolAllocator * m_collisionAlgorithmPoolAllocator
virtual bool needsResponse(const btCollisionObject *body0, const btCollisionObject *body1)
virtual ~btCollisionDispatcher()
virtual void * allocateCollisionAlgorithm(int size)
btNearCallback getNearCallback() 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...
btPoolAllocator * m_persistentManifoldPoolAllocator
virtual btPoolAllocator * getInternalManifoldPool()
int getNumManifolds() const
btPersistentManifold ** getInternalManifoldPointer()
The btBroadphasePair class contains a pair of aabb-overlapping objects.