Update TileIntersectsBody.js

This commit is contained in:
svipal 2020-02-08 10:31:23 +01:00 committed by GitHub
parent f47d2a028a
commit 891c39cc69
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,7 +18,7 @@
var TileIntersectsBody = function (tileWorldRect, body) var TileIntersectsBody = function (tileWorldRect, body)
{ {
// Currently, all bodies are treated as rectangles when colliding with a Tile. // Currently, all bodies are treated as rectangles when colliding with a Tile.
return !( return !(
body.right <= tileWorldRect.left || body.right <= tileWorldRect.left ||
body.bottom <= tileWorldRect.top || body.bottom <= tileWorldRect.top ||