mirror of
https://github.com/photonstorm/phaser
synced 2024-11-28 07:31:11 +00:00
Fix position from scaled sprite
This commit is contained in:
parent
d6e8600766
commit
1ed0aaf8ba
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ var StaticBody = new Class({
|
|||
* @type {Phaser.Math.Vector2}
|
||||
* @since 3.0.0
|
||||
*/
|
||||
this.position = new Vector2(gameObject.x - gameObject.displayOriginX, gameObject.y - gameObject.displayOriginY);
|
||||
this.position = new Vector2(gameObject.x - (width * gameObject.originX), gameObject.y - (height * gameObject.originY));
|
||||
|
||||
/**
|
||||
* The width of the Static Body's boundary, in pixels.
|
||||
|
|
Loading…
Reference in a new issue