Phaser API Documentation

  Version: 
getBody()

Description:

Scans all active bodies in the current Matter World to see if any of them are hit by the Pointer. The first one found to hit is set as the active contraint body.

Returns:
Description:

true if a body was found and set, otherwise false.

Type:
  • boolean
Since: 3.16.2