Phaser API Documentation

  Version: 
getBounds([matrix])

Description:

Gets the bounds of this particle as a Geometry Rectangle, factoring in any transforms of the parent emitter and anything else above it in the display list.

Once calculated the bounds can be accessed via the Particle.bounds property.

Parameters:

name type arguments description
matrix Phaser.GameObjects.Components.TransformMatrix <optional>

Optional transform matrix to apply to this particle.

Returns:
Description:

A Rectangle containing the transformed bounds of this particle.

Since: 3.60.0