How to make the object will never spin

Jan 6, 2010 at 7:32 AM

I do not want to rotate an object, but after the collision, it will rotate

Jan 6, 2010 at 9:03 AM

You can stop it from rotating by setting the moment of inertia to float.PositiveInfinity. When you need to have it rotate again, you set it to a decent value. You can grab the code to calculate a geometry-based MOI from the GeomFactory class.

Jan 8, 2010 at 2:30 AM

Thank you very much