pub unsafe extern "C" fn PxRigidBodyExt_setMassAndUpdateInertia_1(
    body: *mut PxRigidBody,
    mass: f32,
    massLocalPose: *const PxVec3,
    includeNonSimShapes: bool
) -> bool
Expand description

Computation of mass properties for a rigid body actor

This method sets the mass, inertia and center of mass of a rigid body. The mass is set to the user-supplied value, and the inertia and center of mass are computed according to the rigid body’s shapes and the input mass.

If no collision shapes are found, the inertia tensor is set to (1,1,1)

Boolean. True on success else false.