The Matter Physics Sleep Start Event.
This event is dispatched by a Matter Physics World instance when a Body goes to sleep.
Listen to it from a Scene using: this.matter.world.on('sleepstart', listener)
.
name | type | description |
---|---|---|
event | Phaser.Physics.Matter.Events.SleepStartEvent |
The Sleep Event object. |
body | MatterJS.BodyType |
The body that has gone to sleep. |