Phaser API Documentation

  Version: 
This is a beta release of our new docs system. Found an issue?
Please tell us about it in the #📖-newdocs-feedback channel on the Phaser Discord
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.