Sets whether this Body collides with the world boundary.
Optionally also sets the World Bounce values. If the Body.worldBounce
is null, it's set to a new Phaser.Math.Vector2 first.
name | type | arguments | Default | description |
---|---|---|---|---|
value | boolean | <optional> | true |
|
bounceX | number | <optional> |
If given this will be replace the |
|
bounceY | number | <optional> |
If given this will be replace the |
|
onWorldBounds | boolean | <optional> |
If given this replaces the Body's |
This Game Object.