Expand description
Manages sleeping and waking for bodies, automatically deactivating them to save computational resources.
See SleepingPlugin
.
Structs§
- Deactivation
Time - How long in seconds the linear and angular velocity of a body need to be below
the
SleepingThreshold
before the body is deactivated. Defaults to 1 second. - Sleeping
Plugin - Manages sleeping and waking for bodies, automatically deactivating them to save computational resources.
- Sleeping
Threshold - A threshold that indicates the maximum linear and angular velocity allowed for a body to be deactivated.
- Wake
UpBody - A
Command
that wakes up a rigid body by removing theSleeping
component and resetting theTimeSleeping
to zero.
Functions§
- mark_
sleeping_ bodies - Adds the
Sleeping
component to bodies whose linear and anigular velocities have been under theSleepingThreshold
for a duration indicated byDeactivationTime
.