Merge pull request #2514 from VitaZheltyakov/dev

Corrected intersects fuction
This commit is contained in:
Richard Davey 2016-06-02 14:49:04 +01:00
commit e4d56175ab

View file

@ -986,6 +986,8 @@ Phaser.Physics.Arcade.prototype = {
*/
intersects: function (body1, body2) {
if (body1 === body2) return false;
// Rect vs. Rect
if (body1.right <= body2.position.x)
{