Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

isSleeping

isSleeping(world, entity): boolean

Whether entity’s body sleeps at rest, which costs the step almost nothing and the stream nothing. Rapier’s on the world that simulates it, the stream’s on a page for a body the room simulates; false for a body not stepped yet.

Parameter Type
world World
entity Entity

boolean