Phaser API Documentation

  Version: 
Event: SLEEP_END
Phaser.Physics.Matter.Events.SLEEP_END
SLEEP_END

Description:

The Matter Physics Sleep End Event.

This event is dispatched by a Matter Physics World instance when a Body stop sleeping.

Listen to it from a Scene using: this.matter.world.on('sleepend', listener).

Parameters:

name type description
event Phaser.Physics.Matter.Events.SleepEndEvent

The Sleep Event object.

body MatterJS.BodyType

The body that has stopped sleeping.