mirror of
https://github.com/photonstorm/phaser
synced 2025-02-16 14:08:28 +00:00
Correct center
in constructor
This commit is contained in:
parent
34176becb5
commit
37c64dc0a9
1 changed files with 1 additions and 1 deletions
|
@ -281,7 +281,7 @@ var Body = new Class({
|
|||
* @type {Phaser.Math.Vector2}
|
||||
* @since 3.0.0
|
||||
*/
|
||||
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);
|
||||
|
||||
/**
|
||||
* The Body's velocity, in pixels per second.
|
||||
|
|
Loading…
Add table
Reference in a new issue