Phaser API Documentation

  Version: 
getBounds(obj)

Description:

Copies the coordinates of this Body's edges into an object.

Parameters:

name type description
obj Phaser.Types.Physics.Arcade.ArcadeBodyBounds

An object to copy the values into.

Returns:
Description:
  • An object with {x, y, right, bottom}.
Since: 3.0.0