Collision Detection only

Topics: User Forum
Oct 12, 2009 at 12:34 AM
Edited Oct 12, 2009 at 12:36 AM


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 12, 2009 at 12:36 AM

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 12, 2009 at 12:37 AM

Oh, thanks for the fast reply :D.