ReadonlyangularAngular speed below which a body counts as at rest, in radians per second.
ReadonlyenabledWhether bodies may sleep at all.
ReadonlylinearLinear speed below which a body counts as at rest, in metres per second.
ReadonlytimeHow long a body must stay below both thresholds before it sleeps, in seconds (§7a: every duration in this engine is seconds).
When dynamic bodies at rest stop being simulated (§32).
§32's example assigns the whole record at once (
world.sleeping = {...});PhysicsWorldOptions.sleepingaccepts a partial and fills the gaps from DEFAULT_SLEEPING_CONFIG throughresolveSleepingConfig.Fields are
readonlybecause this is resolved configuration, not live state: whether a body is asleep is read-only state on the body withwake()andsleep()as the commands (§23, §32).