pub unsafe extern "C" fn PxRigidBodyExt_setMassAndUpdateInertia(
    body: *mut PxRigidBody,
    shapeMasses: *const f32,
    shapeMassCount: u32,
    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 sum of all user-supplied shape mass values, and the inertia and center of mass are computed according to the rigid body’s shapes and the per shape mass input values.

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

If a single mass value should be used for the actor as a whole then the overloaded method setMassAndUpdateInertia() with a single mass parameter can be used instead.

Boolean. True on success else false.