CustomOverlappingPairCallback question

sandeep_slash
Posts: 48
Joined: Thu Jul 10, 2008 6:36 pm

CustomOverlappingPairCallback question

Post by sandeep_slash »

After going through the CharacterDemo tutorials... I have some doubt....

I have only 2 objects in the scene.... TriMesh and a character

After debugging I found that, in

Code: Select all

void btAxisSweep3Internal<BP_FP_INT_TYPE>::sortMinDown()
{
       m_pairCache->addOverlappingPair(pHandleEdge,pHandlePrev);
       if (m_userPairCallback)
	m_userPairCallback->addOverlappingPair(pHandleEdge,pHandlePrev);
...
}
m_pairCache creates a new BroadphasePair(TriMesh, character)

If thatz the case, then whatz the purpose of having CustomPairCallback?