Skip to content

Commit e8646de

Browse files
committed
Merge pull request phaserjs#231 from jcd-as/dev
update the collision hulls in sprite->sprite separations (in addition to...
2 parents 141337b + f468824 commit e8646de

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/physics/arcade/ArcadePhysics.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -697,6 +697,8 @@ Phaser.Physics.Arcade.prototype = {
697697
body2.x += this._overlap;
698698
body2.velocity.x = this._velocity1 - this._velocity2 * body2.bounce.x;
699699
}
700+
body1.updateHulls();
701+
body2.updateHulls();
700702

701703
return true;
702704
}
@@ -817,6 +819,8 @@ Phaser.Physics.Arcade.prototype = {
817819
body2.x += body1.x - body1.lastX;
818820
}
819821
}
822+
body1.updateHulls();
823+
body2.updateHulls();
820824

821825
return true;
822826
}

0 commit comments

Comments
 (0)