mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 05:33:35 +00:00
Fixed Arcade Physics Circle body collision, after the #2654 change broke it unintentionally.
This commit is contained in:
parent
92fc28010b
commit
11b0436a26
1 changed files with 4 additions and 1 deletions
|
@ -1158,7 +1158,10 @@ Phaser.Physics.Arcade.prototype = {
|
|||
this.getOverlapX(body1, body2);
|
||||
this.getOverlapY(body1, body2);
|
||||
|
||||
var angleCollision = this.angleBetweenCenters(body1, body2);
|
||||
var dx = body2.center.x - body1.center.x;
|
||||
var dy = body2.center.y - body1.center.y;
|
||||
|
||||
var angleCollision = Math.atan2(dy, dx);
|
||||
|
||||
var overlap = 0;
|
||||
|
||||
|
|
Loading…
Reference in a new issue