Problem with raycast and filters

Ketru
Posts: 1
Joined: Thu Oct 15, 2009 1:49 am

Problem with raycast and filters

Post by Ketru »

Hi,

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 );

The "static-static collision" warning effectively disappeared but my raycasts are now broken.
I tried to step in the code and ended up in btCollisionWorld::RayResultCallback::needsCollision which return false ...

Any help would be greatly appreciated !!!