Phaser API Documentation

  Version: 
willCollideWith(category)

Description:

Checks to see if the given Collision Category will collide with this Arcade Physics object or not.

Parameters:

name type description
category number

Collision category value to test.

Returns:
Description:

true if the given category will collide with this object, otherwise false.

Type:
  • boolean
Since: 3.70.0