Const
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).
this.matter.world.on('beforeadd', listener)
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).