I tried adding filters as explained in the doc to avoid unwanted static-static collisions but then my raycasts stopped working.
I don't want to filter raycasts at all, just collisions.
To isolate the problem I've reduced the scene to the bare minimum : an heightfield and that's all.
The heightfield is added in the world with this code
Code: Select all
enum CollisionGroup
{
ColGroup_Nothing = 0,
ColGroup_Static = 1 << 1,
ColGroup_RigidBodies = 1 << 2
};
...
pWorld->addCollisionObject( m_pBulletInterface , ColGroup_Static, ColGroup_Nothing );
I tried to step in the code and ended up in btCollisionWorld::RayResultCallback::needsCollision which return false ...
Any help would be greatly appreciated !!!