Matter.Sleeping

Defined in: src/core/Sleeping.js:1

The Matter.Sleeping module contains methods to manage the sleeping state of bodies.

Methods

Matter.Sleeping.afterCollisions

(pairs, timeScale)

Given a set of colliding pairs, wakes the sleeping bodies involved.

Parameters

@ src/core/Sleeping.js:56

Matter.Sleeping.set

(body, isSleeping)

Set a body as sleeping or awake.

Parameters

@ src/core/Sleeping.js:92

Matter.Sleeping.update

(bodies, timeScale)

Puts bodies to sleep or wakes them up depending on their motion.

Parameters

@ src/core/Sleeping.js:19

Item Index

Methods