We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d6e8600 commit 1ed0aafCopy full SHA for 1ed0aaf
1 file changed
src/physics/arcade/StaticBody.js
@@ -124,7 +124,7 @@ var StaticBody = new Class({
124
* @type {Phaser.Math.Vector2}
125
* @since 3.0.0
126
*/
127
- 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));
128
129
/**
130
* The width of the Static Body's boundary, in pixels.
0 commit comments