Phaser API Documentation

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

Description:

The Matter Physics After Add Event.

This event is dispatched by a Matter Physics World instance at the end of the process when a new Body or Constraint has just been added to the world.

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

Parameters:

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

The Add Event object.