Skip to content

Commit 695de5f

Browse files
committed
Merge branch 'master' of https://github.com/photonstorm/phaser
2 parents 19304c2 + d8eeb3b commit 695de5f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/physics/arcade/Body.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -788,8 +788,8 @@ var Body = new Class({
788788

789789
var sprite = this.gameObject;
790790

791-
this.position.x = sprite.x - sprite.displayOriginX + (sprite.scaleX * this.offset.x);
792-
this.position.y = sprite.y - sprite.displayOriginY + (sprite.scaleY * this.offset.y);
791+
this.position.x = sprite.x + sprite.scaleX * (this.offset.x - sprite.displayOriginX);
792+
this.position.y = sprite.y + sprite.scaleY * (this.offset.y - sprite.displayOriginY);
793793

794794
this.updateCenter();
795795

0 commit comments

Comments
 (0)