mirror of
https://github.com/photonstorm/phaser
synced 2024-11-26 06:30:38 +00:00
Merge branch 'master' of https://github.com/photonstorm/phaser
This commit is contained in:
commit
695de5fbf4
1 changed files with 2 additions and 2 deletions
|
@ -788,8 +788,8 @@ var Body = new Class({
|
|||
|
||||
var sprite = this.gameObject;
|
||||
|
||||
this.position.x = sprite.x - sprite.displayOriginX + (sprite.scaleX * this.offset.x);
|
||||
this.position.y = sprite.y - sprite.displayOriginY + (sprite.scaleY * this.offset.y);
|
||||
this.position.x = sprite.x + sprite.scaleX * (this.offset.x - sprite.displayOriginX);
|
||||
this.position.y = sprite.y + sprite.scaleY * (this.offset.y - sprite.displayOriginY);
|
||||
|
||||
this.updateCenter();
|
||||
|
||||
|
|
Loading…
Reference in a new issue