We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
center
1 parent a13d623 commit c07c57fCopy full SHA for c07c57f
1 file changed
src/physics/arcade/StaticBody.js
@@ -173,7 +173,7 @@ var StaticBody = new Class({
173
* @type {Phaser.Math.Vector2}
174
* @since 3.0.0
175
*/
176
- this.center = new Vector2(gameObject.x + this.halfWidth, gameObject.y + this.halfHeight);
+ this.center = new Vector2(this.position.x + this.halfWidth, this.position.y + this.halfHeight);
177
178
/**
179
* A constant zero velocity used by the Arcade Physics simulation for calculations.
0 commit comments