P2 World array reset fix.

This commit is contained in:
photonstorm 2014-05-20 10:02:01 +01:00
parent 00819626fc
commit 88306b6e12
2 changed files with 2 additions and 2 deletions

View file

@ -1748,6 +1748,7 @@ 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.
* Note that this only applies if your World has bounds! The response to the collision should be managed via CollisionMaterials.
*
* @name Phaser.Physics.P2.Body#collideWorldBounds
* @property {boolean} collideWorldBounds - Should the Body collide with the World bounds?
*/

View file

@ -1446,7 +1446,6 @@ Phaser.Physics.P2.prototype = {
{
output.push(body);
}
}
return output;
@ -1471,7 +1470,7 @@ Phaser.Physics.P2.prototype = {
map.layers[layer].bodies[i].destroy();
}
map.layers[layer].bodies.length = [];
map.layers[layer].bodies.length = 0;
},