Update TileIntersectsBody.js

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

View file

@ -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 ||