I'm having a hard time understanding why a collision remain undetected.
I have two btGhostObject with btSphereShape attached.
First is at world position 50, 50, 50 with a sphere of radius 100, and has been added like this : mCollisionWorld->addCollisionObject(mGhost, 2, 1);
Second object is at world position 0, 50, 0 with a sphere of radius 10, and has been added like this : mCollisionWorld->addCollisionObject(mGhost, 1, 2);
mCollisionWorld has been updated through performDiscreteCollisionDetection()
To detect the collision, I'm using a method described in the wiki :
Code: Select all
btBroadphasePairArray& pairArray = mGhostObject->getOverlappingPairCache()->getOverlappingPairArray();
for (int i = 0; i < pairArray.size(); ++i)
{
// We never get here
}Any pointers that could help me ?
Thanks in advance !