This event is dispatched by an Arcade Physics World instance if two bodies overlap and at least
one of them has their [onOverlap]Phaser.Physics.Arcade.Body#onOverlap property set to true.
It provides an alternative means to handling overlap events rather than using the callback approach.
Listen to it from a Scene using: this.physics.world.on('overlap', listener).
Please note that 'collide' and 'overlap' are two different things in Arcade Physics.
The Arcade Physics World Overlap Event.
This event is dispatched by an Arcade Physics World instance if two bodies overlap and at least one of them has their [onOverlap]Phaser.Physics.Arcade.Body#onOverlap property set to
true.It provides an alternative means to handling overlap events rather than using the callback approach.
Listen to it from a Scene using:
this.physics.world.on('overlap', listener).Please note that 'collide' and 'overlap' are two different things in Arcade Physics.