Skip to content

Commit f56f167

Browse files
committed
pivots were wrong signed, everything was upside down
1 parent 634b1d1 commit f56f167

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/physics/p2/RevoluteConstraint.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ Phaser.Physics.P2.RevoluteConstraint = function (world, bodyA, pivotA, bodyB, pi
3232
*/
3333
this.world = world;
3434

35-
pivotA = [ world.pxm(pivotA[0]), world.pxm(pivotA[1]) ];
36-
pivotB = [ world.pxm(pivotB[0]), world.pxm(pivotB[1]) ];
35+
pivotA = [ world.pxmi(pivotA[0]), world.pxmi(pivotA[1]) ];
36+
pivotB = [ world.pxmi(pivotB[0]), world.pxmi(pivotB[1]) ];
3737

3838
p2.RevoluteConstraint.call(this, bodyA, pivotA, bodyB, pivotB, maxForce);
3939

0 commit comments

Comments
 (0)