mirror of
https://github.com/wassname/phaser.git
synced 2026-07-17 11:31:30 +08:00
Do not invert (physics) shape size data for circle, rectangle, capsuel & line #445
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user