Phaser API Documentation

  Version: 
customBoundsRectangle: Phaser.Geom.Rectangle

Description:

The rectangle used for world boundary collisions.

By default it is set to the world boundary rectangle. Or, if this Body was created by a Physics Group, then whatever rectangle that Group defined.

You can also change it by using the Body.setBoundsRectangle method.

Since: 3.20