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.
name | type | description |
---|---|---|
start | boolean |
|
end | boolean |
|
This Game Object instance.