The P2 DistanceConstraint method signature has changed. Updated Phaser so maxForce is now passed as object (fix #788)

This commit is contained in:
photonstorm 2014-04-30 16:54:56 +01:00
parent a7fe3a5346
commit b40769019b

View file

@ -32,7 +32,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});
};