Function physx_sys::PxRigidBody_setMass_mut
source · pub unsafe extern "C" fn PxRigidBody_setMass_mut(
self_: *mut PxRigidBody,
mass: f32
)
Expand description
Sets the mass of a dynamic actor.
The mass must be non-negative.
setMass() does not update the inertial properties of the body, to change the inertia tensor
use setMassSpaceInertiaTensor() or the PhysX extensions method PxRigidBodyExt::updateMassAndInertia
.
A value of 0 is interpreted as infinite mass.
Values of 0 are not permitted for instances of PxArticulationLink but are permitted for instances of PxRigidDynamic.
Default: 1.0
Sleeping: Does NOT wake the actor up automatically.