Skip to content

Commit aedf666

Browse files
committed
Testing filterOptions to avoid needless iterations
1 parent c45caa8 commit aedf666

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎src/physics/arcade/World.js‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2208,6 +2208,9 @@ var World = new Class({
22082208

22092209
var mapData = GetTilesWithinWorldXY(x, y, w, h, null, tilemapLayer.scene.cameras.main, tilemapLayer.layer);
22102210

2211+
// var mapData = GetTilesWithinWorldXY(x, y, w, h, { isColliding: true, isNotEmpty: true }, tilemapLayer.scene.cameras.main, tilemapLayer.layer);
2212+
// console.log(mapData.length);
2213+
22112214
if (mapData.length === 0)
22122215
{
22132216
return false;

0 commit comments

Comments
 (0)