update the collision hulls in sprite->sprite separations (in addition to sprite->tile separations)

This commit is contained in:
Josh Shepard (jcs)
2013-11-25 20:58:39 -08:00
parent 86584a636c
commit f4688241d2
+4
View File
@@ -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;
}