Phaser API Documentation

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

Description:

The Matter Physics Before Remove Event.

This event is dispatched by a Matter Physics World instance at the start of the process when a Body or Constraint is being removed from the world.

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

Parameters:

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

The Remove Event object.