This project has moved and is read-only. For the latest updates, please go here.

Body.ResetDynamics issue

Topics: Developer Forum, Project Management Forum, User Forum
Jul 31, 2009 at 2:25 AM

I have bullets and targets, when a bullet hit something i disable its body and call ResetDynamics. This reset all the properties of Body, but the Geom properties remain untouched, Geom.Position and Geom.Rotation hold the position and rotation of the collision, while Body.Position = 0,0 and Body.Rotation = 0
To fix that i think you only need to add this piece of code:
if (Updated != null)
    Updated(ref position, ref rotation);
at the end of Body.ResetDynamics.

Jul 31, 2009 at 3:01 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.