btDispatcher::dispatchAllCollisionPairs
Posted: Tue Sep 28, 2010 11:52 pm
Is there a subtle reason btDispatcher::dispatchAllCollisionPairs() takes a btDispatcher* parameter?
"this" is used to create new algorithms; and "dispatcher" is used by the pair cache to free algorithms. So as far as I can tell, it would be an error if "this != dispatcher".
Code: Select all
void btCollisionDispatcher::dispatchAllCollisionPairs(
btOverlappingPairCache* pairCache,
const btDispatcherInfo& dispatchInfo,
btDispatcher* dispatcher)
{
btCollisionPairCallback collisionCallback(dispatchInfo, this);
pairCache->processAllOverlappingPairs(&collisionCallback, dispatcher);
}