Getting Collision Point - Manifold Empty

Topics: Developer Forum
May 14, 2011 at 4:18 PM
Edited May 14, 2011 at 5:17 PM

Hi,

 This seems like a simple question, but I'm not sure if I'm going about it correctly. I'm using Silverlight and am handling a body's OnCollision event to try and get the coordinates of where the collision occurred:

 

contact.GetWorldManifold(out normal, out points);

 

However, the values are always zero. Even if I put a breakpoint on the method and dive into the Contact property, all the manifold data is zero. Do I need to add something else somewhere or is there a different way to get the collision point?

Thanks

 

EDIT - I think I've found the reason. When I used my code between two bodies, it the manifold data was updated. When  I used it between a body and a sensor, it didn't. Am I right in thinking that a sensor does not have it's manifold data updated?