Number of Broadphase and Narrowphase Collisions

console
Posts: 18
Joined: Thu Sep 04, 2008 10:25 am

Number of Broadphase and Narrowphase Collisions

Post by console »

Is there a way to determine the number of collisions in the broadphase and in the narrowphase during a physics simulation cycle?

I think I can find out the number of broadphase collisions using

Code: Select all

m_broadphasePairCache->getOverlappingPairCache()->getNumOverlappingPairs()
in a class inherited from

Code: Select all

btDiscreteDynamicsWorld
but I'm unsure if this figure is exactly the one I'm looking for. I haven't been able to find a narrowphase equivalent.

Thanks.