File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -716,10 +716,10 @@ Phaser.Physics.Arcade.Body.prototype = {
716716 this . angularVelocity = 0 ;
717717 this . angularAcceleration = 0 ;
718718
719- this . position . x = ( this . sprite . world . x - ( this . sprite . anchor . x * this . sprite . width ) ) + this . sprite . scale . x * this . offset . x ;
719+ this . position . x = ( x - ( this . sprite . anchor . x * this . sprite . width ) ) + this . sprite . scale . x * this . offset . x ;
720720 this . position . x -= this . sprite . scale . x < 0 ? this . width : 0 ;
721721
722- this . position . y = ( this . sprite . world . y - ( this . sprite . anchor . y * this . sprite . height ) ) + this . sprite . scale . y * this . offset . y ;
722+ this . position . y = ( y - ( this . sprite . anchor . y * this . sprite . height ) ) + this . sprite . scale . y * this . offset . y ;
723723 this . position . y -= this . sprite . scale . y < 0 ? this . height : 0 ;
724724
725725 this . prev . x = this . position . x ;
You can’t perform that action at this time.
0 commit comments