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