Merge pull request #231 from jcd-as/dev

update the collision hulls in sprite->sprite separations (in addition to...
This commit is contained in:
Richard Davey
2013-11-26 03:54:40 -08:00
+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;
}