jsdocs update for collideWorldBounds #1010

This commit is contained in:
photonstorm 2014-08-29 01:16:05 +01:00
parent 52ea95d9ce
commit dd160f004b

View file

@ -1744,6 +1744,8 @@ Object.defineProperty(Phaser.Physics.P2.Body.prototype, "debug", {
/** /**
* A Body can be set to collide against the World bounds automatically if this is set to true. Otherwise it will leave the World. * A Body can be set to collide against the World bounds automatically if this is set to true. Otherwise it will leave the World.
* Note that this only applies if your World has bounds! The response to the collision should be managed via CollisionMaterials. * Note that this only applies if your World has bounds! The response to the collision should be managed via CollisionMaterials.
* 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
* after setting this it will *not* proactively set them to collide with the bounds.
* *
* @name Phaser.Physics.P2.Body#collideWorldBounds * @name Phaser.Physics.P2.Body#collideWorldBounds
* @property {boolean} collideWorldBounds - Should the Body collide with the World bounds? * @property {boolean} collideWorldBounds - Should the Body collide with the World bounds?