pub unsafe extern "C" fn PxRigidDynamic_setWakeCounter_mut(
    self_: *mut PxRigidDynamic,
    wakeCounterValue: f32
)
Expand description

Sets the wake counter for the actor.

The wake counter value determines the minimum amount of time until the body can be put to sleep. Please note that a body will not be put to sleep if the energy is above the specified threshold (see setSleepThreshold) or if other awake bodies are touching it.

Passing in a positive value will wake the actor up automatically.

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

It is invalid to use this method if PxActorFlag::eDISABLE_SIMULATION is set.

Default: 0.4 (which corresponds to 20 frames for a time step of 0.02)