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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
world |
World |
entity |
Entity |
Returns
Section titled “Returns”boolean