Interface: WorldEventsMap

Phaser.Types.Physics.Impact. WorldEventsMap

Methods


collide(bodyA, bodyB, axis)

The Impact Physics World Collide Event.

This event is dispatched by an Impact Physics World instance if two bodies collide.

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

Parameters:
Name Type Description
bodyA Phaser.Physics.Impact.Body

The first body involved in the collision.

bodyB Phaser.Physics.Impact.Body

The second body involved in the collision.

axis string

The collision axis. Either x or y.

Since: 3.0.0
Source: src/physics/impact/events/COLLIDE_EVENT.js (Line 23)

pause()

The Impact Physics World Pause Event.

This event is dispatched by an Impact Physics World instance when it is paused.

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

Since: 3.0.0
Source: src/physics/impact/events/PAUSE_EVENT.js (Line 19)

resume()

The Impact Physics World Resume Event.

This event is dispatched by an Impact Physics World instance when it resumes from a paused state.

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

Since: 3.0.0
Source: src/physics/impact/events/RESUME_EVENT.js (Line 19)