
In BodyFactory.CreateCircleBody, the moment of inertia is calculated as follows:
body.MomentOfInertia = .5f * mass * (float)Math.Pow(radius, 2f);
Looking at the moment of inertia for a solid disk on Wikipedia (http://en.wikipedia.org/wiki/List_of_moments_of_inertia), I would think the equation should be:
body.MomentOfInertia = .25f * mass * (float)Math.Pow(radius, 2f);
... for a 2dimensional object.


Coordinator
Dec 5, 2008 at 12:35 AM

The MOI is calculated around the "z" axis. Which for 2d is perpendicular to the screen. I think the .5 is correct.

