Do not invert (physics) shape size data for circle, rectangle, capsuel & line #445

This commit is contained in:
photonstorm
2014-02-19 15:21:03 +00:00
parent 812de7d994
commit 1d3616f52c
4 changed files with 78 additions and 26 deletions
+3 -3
View File
@@ -373,12 +373,12 @@ Phaser.Physics.World.prototype = {
this.bounds.removeShape(shape);
}
this.bounds.position[0] = this.game.math.px2p(cx);
this.bounds.position[1] = this.game.math.px2p(cy);
this.bounds.position[0] = this.game.math.px2pi(cx);
this.bounds.position[1] = this.game.math.px2pi(cy);
}
else
{
this.bounds = new p2.Body({ mass: 0, position:[this.game.math.px2p(cx), this.game.math.px2p(cy)] });
this.bounds = new p2.Body({ mass: 0, position:[this.game.math.px2pi(cx), this.game.math.px2pi(cy)] });
}
if (left)