Phaser API Documentation

customBoundsRectangle: Phaser.Geom.Rectangle


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