Phaser API Documentation

  Version: 
getBounds(obj)

Description:

Returns the x and y coordinates of the top left and bottom right points of the StaticBody.

Parameters:

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

The object which will hold the coordinates of the bounds.

Returns:
Description:

The same object that was passed with x, y, right and bottom values matching the respective values of the StaticBody.

Since: 3.0.0