Collision Detection only

Topics: User Forum
Oct 11, 2009 at 11:34 PM
Edited Oct 11, 2009 at 11:36 PM


Is there a way to detect only collision (no bouncing) for some bodies?



Some object will have joints and ect. What I really want to achieve is, take a humanoid for example and make it static. I want to be able to rotate and move the body parts and the whole body and I only want it to stop/report on collision with an another geom/body. But when the body is static, I can't apply force and the Position property is unaffected by collisions.

Oct 11, 2009 at 11:36 PM

You can turn off the physics by setting Geom.IsSensor = true. This way you will have to move all the objects yourself. You can then use the OnCollision event to detect when something has collided.

Oct 11, 2009 at 11:37 PM

Oh, thanks for the fast reply :D.