mirror of
https://github.com/photonstorm/phaser
synced 2024-12-23 11:33:28 +00:00
Update TileIntersectsBody.js
This commit is contained in:
parent
a21b9b8287
commit
f47d2a028a
1 changed files with 1 additions and 0 deletions
|
@ -18,6 +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 ||
|
||||||
|
|
Loading…
Reference in a new issue