Wakes this Body if asleep.
Enables or disables the Sleep End event for this body.
true to enable the sleep event, or false to disable it.
Enable sleep and wake events for this body.
By default when a body goes to sleep, or wakes up, it will not emit any events.
The events are emitted by the Matter World instance and can be listened to via
the SLEEP_START and SLEEP_END events.
true if you want the sleep start event to be emitted for this body.
true if you want the sleep end event to be emitted for this body.
Enables or disables the Sleep Start event for this body.
true to enable the sleep event, or false to disable it.
Sets the number of updates in which this body must have near-zero velocity before it is set as sleeping (if sleeping is enabled by the engine).
Optionalvalue: numberA Number that defines the number of updates in which this body must have near-zero velocity before it is set as sleeping. Default 60.
Sets this Body to sleep.
Enables a Matter-enabled Game Object to be able to go to sleep. Should be used as a mixin and not directly.