What else should be reset when body is set to static?

Topics: Developer Forum
Jun 11, 2008 at 11:12 PM
For Silverlight version 1.0.0.5.

Besides inverseMass and inverseMomentOfInertia, what else should be reset when body is set to static?

I draw a box on the canvas. When it's dropping down, I make it static. And I draw the second box above the first one. But the second box drops through the first one. It should stay on the top of the first box.

The issue is fixed when linearVelocity is reset in Body.IsStatic (set with true):
                    linearVelocity.X = 0;
                    linearVelocity.Y = 0;

I don't know if there are other values should be reset when a body is set to static.