Module sleeping

Source
Expand description

Components and resources for Sleeping rigid bodies to reduce CPU overhead.

See the Sleeping documentation for more information.

Structs§

SleepThreshold
A component for the maximum LinearVelocity and AngularVelocity for a body to be allowed to be Sleeping.
SleepTimer
A component storing the time in seconds that a RigidBody has been resting with its LinearVelocity and AngularVelocity below the SleepThreshold.
Sleeping
A marker component indicating that a RigidBody is sleeping and not simulated until woken up again.
SleepingDisabled
A marker component indicating that Sleeping is disabled for a RigidBody.
TimeToSleep
A resource that specifies the time in seconds that a RigidBody must rest with its LinearVelocity and AngularVelocity below the SleepThreshold before it is allowed to be Sleeping.

Type Aliases§

DeactivationTimeDeprecated
Deprecated alias for TimeToSleep.
SleepingThresholdDeprecated
Deprecated alias for SleepThreshold.
TimeSleepingDeprecated
Deprecated alias for SleepTimer.