diff --git a/src/physics/arcade/inc/tilemap/TileIntersectsBody.js b/src/physics/arcade/inc/tilemap/TileIntersectsBody.js index 9c3cdda7c..af35dd81b 100644 --- a/src/physics/arcade/inc/tilemap/TileIntersectsBody.js +++ b/src/physics/arcade/inc/tilemap/TileIntersectsBody.js @@ -1,18 +1,14 @@ var TileIntersectsBody = function (tileWorldRect, body) { - if (body.isCircle) - { - return false; - } - else - { - return !( - body.right <= tileWorldRect.left || - body.bottom <= tileWorldRect.top || - body.position.x >= tileWorldRect.right || - body.position.y >= tileWorldRect.bottom - ); - } + // Currently, all bodies are treated as rectangles when colliding with a Tile. Eventually, this + // should support circle bodies when those are less buggy in v3. + + return !( + body.right <= tileWorldRect.left || + body.bottom <= tileWorldRect.top || + body.position.x >= tileWorldRect.right || + body.position.y >= tileWorldRect.bottom + ); }; module.exports = TileIntersectsBody;