We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
position
1 parent 2a7cfb6 commit 34176beCopy full SHA for 34176be
1 file changed
src/physics/arcade/Body.js
@@ -148,7 +148,10 @@ var Body = new Class({
148
* @type {Phaser.Math.Vector2}
149
* @since 3.0.0
150
*/
151
- this.position = new Vector2(gameObject.x, gameObject.y);
+ this.position = new Vector2(
152
+ gameObject.x - gameObject.scaleX * gameObject.displayOriginX,
153
+ gameObject.y - gameObject.scaleY * gameObject.displayOriginY
154
+ );
155
156
/**
157
* The position of this Body during the previous step.
0 commit comments