Skip to content

Commit dd160f0

Browse files
committed
jsdocs update for collideWorldBounds phaserjs#1010
1 parent 52ea95d commit dd160f0

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/physics/p2/Body.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1744,6 +1744,8 @@ Object.defineProperty(Phaser.Physics.P2.Body.prototype, "debug", {
17441744
/**
17451745
* A Body can be set to collide against the World bounds automatically if this is set to true. Otherwise it will leave the World.
17461746
* Note that this only applies if your World has bounds! The response to the collision should be managed via CollisionMaterials.
1747+
* Also note that when you set this it will only effect Body shapes that already exist. If you then add further shapes to your Body
1748+
* after setting this it will *not* proactively set them to collide with the bounds.
17471749
*
17481750
* @name Phaser.Physics.P2.Body#collideWorldBounds
17491751
* @property {boolean} collideWorldBounds - Should the Body collide with the World bounds?

0 commit comments

Comments
 (0)