Setting Rigidbody from static to dynamic

Aug 4, 2007 at 11:25 PM
I am wondering how one is supposed (or is able) to set a rigidbody that started as static (mass zero) to dynamic (by setting the mass to non-zero).

I have tried the following:

Vector3 localInertia = new Vector3();
collisionShape.CalculateLocalInertia(mass, out localInertia);
body.SetMassProps(mass, localInertia);

But to no avail. Inside of RigidBody's constructor, I see it doesn't do anything with the mass other than call that. Is the flag only checked once or something?
Coordinator
Aug 5, 2007 at 11:07 AM
You can try just to remove static body and then add the same body with non-zero mass.