I try this code:
Code: Select all
btVector3 inertia;
body->getCollisionShape()->calculateLocalInertia(new_mass, inertia);
body->setMassProps(new_mass, inertia);
body->updateInertiaTensor();And If it isnt posible and I must created new object, How I really need read velocity and other stuff and apply on new object with new mass??????