We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
center
1 parent 34176be commit 37c64dcCopy full SHA for 37c64dc
1 file changed
src/physics/arcade/Body.js
@@ -281,7 +281,7 @@ var Body = new Class({
281
* @type {Phaser.Math.Vector2}
282
* @since 3.0.0
283
*/
284
- 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);
285
286
/**
287
* The Body's velocity, in pixels per second.
0 commit comments