Phaser API Documentation

  Version: 
setBoundsCollision([left], [right], [up], [down])

Description:

Enables or disables collisions on each edge of the World boundary.

Parameters:

name type arguments Default description
left boolean <optional> true

Should bodies check against the left edge of the boundary?

right boolean <optional> true

Should bodies check against the right edge of the boundary?

up boolean <optional> true

Should bodies check against the top edge of the boundary?

down boolean <optional> true

Should bodies check against the bottom edge of the boundary?

Returns:
Description:

This World object.

Since: 3.0.0