The Matter Physics Before Add Event.
This event is dispatched by a Matter Physics World instance at the start of the process when a new Body or Constraint is being added to the world.
Listen to it from a Scene using: this.matter.world.on('beforeadd', listener)
.
name | type | description |
---|---|---|
event | Phaser.Physics.Matter.Events.BeforeAddEvent |
The Add Event object. |