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
+1 -1
View File
@@ -75,7 +75,7 @@ function fire() {
bullet.position.set(cannon.x, cannon.y);
bullet.physicsEnabled = true;
bullet.body.collideWorldBounds = false;
bullet.body.rotation = cannon.rotation + game.math.degToRad(90);
bullet.body.rotation = cannon.rotation - game.math.degToRad(90);
var magnitude = game.math.px2p(-500);
var angle = bullet.body.rotation + Math.PI / 2;