Skip to content

Commit 2eb505c

Browse files
committed
Docs: Arcade.Body#setCollideWorldBounds
1 parent 7aa8f02 commit 2eb505c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/physics/arcade/Body.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1687,14 +1687,14 @@ var Body = new Class({
16871687
/**
16881688
* Sets whether this Body collides with the world boundary.
16891689
*
1690-
* Optionally also sets the World Bounce values. If the `Body.worldBounce` is null, it's set to a new Phaser.Math.Vector2 first.
1690+
* Optionally also sets the World Bounce and `onWorldBounds` values.
16911691
*
16921692
* @method Phaser.Physics.Arcade.Body#setCollideWorldBounds
16931693
* @since 3.0.0
16941694
*
1695-
* @param {boolean} [value=true] - `true` if this body should collide with the world bounds, otherwise `false`.
1696-
* @param {number} [bounceX] - If given this will be replace the `worldBounce.x` value.
1697-
* @param {number} [bounceY] - If given this will be replace the `worldBounce.y` value.
1695+
* @param {boolean} [value=true] - `true` if the Body should collide with the world bounds, otherwise `false`.
1696+
* @param {number} [bounceX] - If given this replaces the Body's `worldBounce.x` value.
1697+
* @param {number} [bounceY] - If given this replaces the Body's `worldBounce.y` value.
16981698
* @param {boolean} [onWorldBounds] - If given this replaces the Body's `onWorldBounds` value.
16991699
*
17001700
* @return {Phaser.Physics.Arcade.Body} This Body object.

0 commit comments

Comments
 (0)