Wrap an object's coordinates within Phaser.Physics.Arcade.World#bounds.
name | type | arguments | description |
---|---|---|---|
object | * |
A Game Object, a Physics Body, or any object with |
|
padding | number | <optional> |
An amount added to the boundary. |