Phaser API Documentation

  Version: 
parseBody(body)

Description:

Parses the given body to get the bounds diff values from it.

They're stored in this class in the temporary properties boundsCenter and centerDiff.

This method is called automatically by all other methods in this class.

Parameters:

name type description
body Phaser.Types.Physics.Matter.MatterBody

The Body to get the bounds position from.

Returns:
Description:

true if it was able to get the bounds, otherwise false.

Type:
  • boolean
Since: 3.22.0