I'm currently doing the following:
Code: Select all
btVector3 inertia;
rigidBody->getCollisionShape()->calculateLocalInertia( newmass, inertia );
rigidBody->setMassProps( newmass, inertia );
rigidBody->updateInertiaTensor();
Thanks
Code: Select all
btVector3 inertia;
rigidBody->getCollisionShape()->calculateLocalInertia( newmass, inertia );
rigidBody->setMassProps( newmass, inertia );
rigidBody->updateInertiaTensor();