mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 07:01:20 +00:00
The P2 DistanceConstraint method signature has changed. Updated Phaser so maxForce is now passed as object (fix #788)
This commit is contained in:
parent
a7fe3a5346
commit
b40769019b
1 changed files with 1 additions and 1 deletions
|
@ -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});
|
||||
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue