From f47d2a028a3cb48c6594fe40c3b48adac0e2862e Mon Sep 17 00:00:00 2001 From: svipal <48034417+svipal@users.noreply.github.com> Date: Sat, 8 Feb 2020 10:30:54 +0100 Subject: [PATCH] Update TileIntersectsBody.js --- src/physics/arcade/tilemap/TileIntersectsBody.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/physics/arcade/tilemap/TileIntersectsBody.js b/src/physics/arcade/tilemap/TileIntersectsBody.js index d9e2ab9a1..7b1eb4984 100644 --- a/src/physics/arcade/tilemap/TileIntersectsBody.js +++ b/src/physics/arcade/tilemap/TileIntersectsBody.js @@ -18,6 +18,7 @@ var TileIntersectsBody = function (tileWorldRect, body) { // Currently, all bodies are treated as rectangles when colliding with a Tile. + return !( body.right <= tileWorldRect.left || body.bottom <= tileWorldRect.top ||