Phaser API Documentation

  Version: 
setOnCollideActive(callback)

Description:

The callback is sent a Phaser.Types.Physics.Matter.MatterCollisionData object.

This does not change the bodies collision category, group or filter. Those must be set in addition to the callback.

Parameters:

name type description
callback function

The callback to invoke for the duration of this body colliding with another.

Returns:
Description:

This Game Object.

Since: 3.22.0