Skip to content

Commit

Permalink
update the collision hulls in sprite->sprite separations (in addition…
Browse files Browse the repository at this point in the history
… to sprite->tile separations)
  • Loading branch information
jcd-as committed Nov 26, 2013
1 parent 86584a6 commit f468824
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/physics/arcade/ArcadePhysics.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -817,6 +819,8 @@ Phaser.Physics.Arcade.prototype = {
body2.x += body1.x - body1.lastX;
}
}
body1.updateHulls();
body2.updateHulls();

return true;
}
Expand Down

0 comments on commit f468824

Please sign in to comment.