Matter.Sleeping
The Matter.Sleeping
module contains methods to manage the sleeping state of bodies.
Methods
Matter.Sleeping.afterCollisions
(pairs)
Given a set of colliding pairs, wakes the sleeping bodies involved.
Parameters
-
pairs
Pair[]
Matter.Sleeping.set
(body, isSleeping)
Set a body as sleeping or awake.