mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 05:03:37 +00:00
Updated Body.reset call.
This commit is contained in:
parent
8743e8952c
commit
16e9acac84
1 changed files with 2 additions and 2 deletions
|
@ -716,10 +716,10 @@ Phaser.Physics.Arcade.Body.prototype = {
|
|||
this.angularVelocity = 0;
|
||||
this.angularAcceleration = 0;
|
||||
|
||||
this.position.x = (this.sprite.world.x - (this.sprite.anchor.x * this.sprite.width)) + this.sprite.scale.x * this.offset.x;
|
||||
this.position.x = (x - (this.sprite.anchor.x * this.sprite.width)) + this.sprite.scale.x * this.offset.x;
|
||||
this.position.x -= this.sprite.scale.x < 0 ? this.width : 0;
|
||||
|
||||
this.position.y = (this.sprite.world.y - (this.sprite.anchor.y * this.sprite.height)) + this.sprite.scale.y * this.offset.y;
|
||||
this.position.y = (y - (this.sprite.anchor.y * this.sprite.height)) + this.sprite.scale.y * this.offset.y;
|
||||
this.position.y -= this.sprite.scale.y < 0 ? this.height : 0;
|
||||
|
||||
this.prev.x = this.position.x;
|
||||
|
|
Loading…
Reference in a new issue