Using rigid bodies without collision

Gogo
Posts: 10
Joined: Sun Feb 22, 2009 1:47 pm

Using rigid bodies without collision

Post by Gogo »

Hi,

I'm already using bullet successfully for my application, however I am curious to know if there is a way to add an object to the world purely for the usage of raytests, without incurring any other performance overhead for physics, i.e I would like to be able to use bullet's raytest functionality for a 3d object, but I don't require any other collision/physics for the object. Is setting CF_NO_CONTACT_RESPONSE for the rigid body enough? Or should I be adding a btCollisionObject to the world instead of the btRigidBody..? Or doing something else entirely?

Thanks
Jacky_J
Posts: 16
Joined: Fri May 11, 2007 7:06 am

Re: Using rigid bodies without collision

Post by Jacky_J »

You should be able to get away with adding just a btCollisionObject, though i haven't really tried it. For trigger zones in my game, i just use a rigidbody with CF_NO_CONTACT_RESPONSE and CF_STATIC_OBJECT flags set.