mirror of
https://github.com/wassname/phaser.git
synced 2026-06-27 16:10:15 +08:00
Merge pull request #231 from jcd-as/dev
update the collision hulls in sprite->sprite separations (in addition to...
This commit is contained in:
@@ -697,6 +697,8 @@ Phaser.Physics.Arcade.prototype = {
|
||||
body2.x += this._overlap;
|
||||
body2.velocity.x = this._velocity1 - this._velocity2 * body2.bounce.x;
|
||||
}
|
||||
body1.updateHulls();
|
||||
body2.updateHulls();
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -817,6 +819,8 @@ Phaser.Physics.Arcade.prototype = {
|
||||
body2.x += body1.x - body1.lastX;
|
||||
}
|
||||
}
|
||||
body1.updateHulls();
|
||||
body2.updateHulls();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user