pub unsafe extern "C" fn PxRigidDynamic_putToSleep_mut(
    self_: *mut PxRigidDynamic
)
Expand description

Forces the actor to sleep.

The actor will stay asleep during the next simulation step if not touched by another non-sleeping actor.

Any applied force will be cleared and the velocity and the wake counter of the actor will be set to 0.

It is invalid to use this method if the actor has not been added to a scene already or if PxActorFlag::eDISABLE_SIMULATION is set.

It is invalid to use this method for kinematic actors since the sleep state for kinematics is defined based on whether a target pose has been set (see the comment in isSleeping).