Phaser API Documentation

  Version: 
getBounds([output])

Description:

Gets the bounds of this Game Object, regardless of origin. The values are stored and returned in a Rectangle, or Rectangle-like, object.

Parameters:

name type arguments description
output object | Phaser.Geom.Rectangle <optional>

An object to store the values in. If not provided a new Rectangle will be created.

Returns:
Description:

The values stored in the output object.

Type:
Since: 3.0.0