Phaser API Documentation

  Version: 
isSensor()

Description:

Is the body belonging to this Game Object a sensor or not?

Returns:
Description:

true if the body is a sensor, otherwise false.

Type:
  • boolean
Since: 3.0.0