mirror of
https://github.com/photonstorm/phaser
synced 2024-11-26 22:52:14 +00:00
P2 World array reset fix.
This commit is contained in:
parent
00819626fc
commit
88306b6e12
2 changed files with 2 additions and 2 deletions
|
@ -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?
|
||||
*/
|
||||
|
|
|
@ -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;
|
||||
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue