Phaser API Documentation

  Version: 
addCollidesWith(category)

Description:

Adds the given Collision Category to the list of those that this Arcade Physics Body will collide with.

Parameters:

name type description
category number

The collision category to add.

Returns:
Description:

This Game Object.

Since: 3.70.0