Skip to content

Commit

Permalink
2.0.5 dist files.
Browse files Browse the repository at this point in the history
  • Loading branch information
photonstorm committed May 20, 2014
1 parent 88306b6 commit b8a2b93
Show file tree
Hide file tree
Showing 11 changed files with 4,322 additions and 740 deletions.
8 changes: 4 additions & 4 deletions build/custom/p2.js
Original file line number Diff line number Diff line change
Expand Up @@ -12931,7 +12931,6 @@ Phaser.Physics.P2.prototype = {
{
output.push(body);
}

}

return output;
Expand All @@ -12956,7 +12955,7 @@ Phaser.Physics.P2.prototype = {
map.layers[layer].bodies[i].destroy();
}

map.layers[layer].bodies.length = [];
map.layers[layer].bodies.length = 0;

},

Expand Down Expand Up @@ -12995,7 +12994,7 @@ Phaser.Physics.P2.prototype = {
{
var tile = map.layers[layer].data[y][x];

if (tile && tile.collides)
if (tile && tile.index > -1 && tile.collides)
{
if (optimize)
{
Expand Down Expand Up @@ -15472,6 +15471,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?
*/
Expand Down Expand Up @@ -16151,7 +16151,7 @@ Phaser.Physics.P2.DistanceConstraint = function (world, bodyA, bodyB, distance,

distance = world.pxm(distance);

p2.DistanceConstraint.call(this, bodyA, bodyB, distance, maxForce);
p2.DistanceConstraint.call(this, bodyA, bodyB, distance, {maxForce: maxForce});

};

Expand Down
4 changes: 2 additions & 2 deletions build/custom/p2.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit b8a2b93

Please sign in to comment.