We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54683b7 commit 7018ca2Copy full SHA for 7018ca2
1 file changed
src/physics/arcade/Body.js
@@ -713,8 +713,8 @@ Phaser.Physics.Arcade.Body.prototype = {
713
this.angularVelocity = 0;
714
this.angularAcceleration = 0;
715
716
- this.position.x = (x - (this.sprite.anchor.x * this.width)) + this.offset.x;
717
- this.position.y = (y - (this.sprite.anchor.y * this.height)) + this.offset.y;
+ this.position.x = (x - (this.sprite.anchor.x * this.sprite.width)) + this.offset.x;
+ this.position.y = (y - (this.sprite.anchor.y * this.sprite.height)) + this.offset.y;
718
719
this.prev.x = this.position.x;
720
this.prev.y = this.position.y;
0 commit comments