92 manifold->~btPersistentManifold();
119 for (
int i = iBegin; i < iEnd; ++i )
122 mCallback( *pair, *mDispatcher, *mInfo );
131 if ( pairCount == 0 )
139 updater.
mInfo = &info;
149 for (
int i = 0; i < pairCount; ++i )
void forLoop(int iBegin, int iEnd) const
btPersistentManifold is a contact point cache, it stays persistent as long as objects are overlapping...
btBroadphasePair * mPairArray
void(* btNearCallback)(btBroadphasePair &collisionPair, btCollisionDispatcher &dispatcher, const btDispatcherInfo &dispatchInfo)
user can override this nearcallback for collision filtering and more finegrained control over collisi...
void push_back(const T &_Val)
btCollisionDispatcherMt(btCollisionConfiguration *config, int grainSize=40)
btCollisionDispatcher * mDispatcher
void resizeNoInitialize(int newsize)
resize changes the number of elements in the array.
btCollisionConfiguration allows to configure Bullet collision detection stack allocator size...
virtual btPersistentManifold * getNewManifold(const btCollisionObject *body0, const btCollisionObject *body1) BT_OVERRIDE
btCollisionDispatcher supports algorithms that handle ConvexConvex and ConvexConcave collision pairs...
btScalar getContactProcessingThreshold() const
void swap(int index0, int index1)
The btOverlappingPairCache provides an interface for overlapping pair management (add, remove, storage), used by the btBroadphaseInterface broadphases.
CollisionDispatcherUpdater()
int size() const
return the number of elements in the array
btAlignedObjectArray< btPersistentManifold * > m_manifoldsPtr
virtual btScalar getContactBreakingThreshold(btScalar defaultContactThresholdFactor) const
#define btAlignedFree(ptr)
btCollisionObject can be used to manage collision detection objects.
virtual void clearManifold(btPersistentManifold *manifold)
const btDispatcherInfo * mInfo
virtual void releaseManifold(btPersistentManifold *manifold) BT_OVERRIDE
virtual int getNumOverlappingPairs() const =0
void * allocate(int size)
#define btAlignedAlloc(size, alignment)
virtual void dispatchAllCollisionPairs(btOverlappingPairCache *pairCache, const btDispatcherInfo &info, btDispatcher *dispatcher) BT_OVERRIDE
void btParallelFor(int iBegin, int iEnd, int grainSize, const btIParallelForBody &body)
void freeMemory(void *ptr)
virtual btBroadphasePair * getOverlappingPairArrayPtr()=0
btNearCallback getNearCallback() const
The btDispatcher interface class can be used in combination with broadphase to dispatch calculations ...
const T & btMin(const T &a, const T &b)
btCollisionAlgorithm is an collision interface that is compatible with the Broadphase and btDispatche...
const btCollisionShape * getCollisionShape() const
btPoolAllocator * m_persistentManifoldPoolAllocator
btScalar gContactBreakingThreshold
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...
The btBroadphasePair class contains a pair of aabb-overlapping objects.