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: AFTER_REMOVE
Phaser.Physics.Matter.Events.AFTER_REMOVE
AFTER_REMOVE

Description:

The Matter Physics After Remove Event.

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

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

Parameters:

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

The Remove Event object.