Entity checking for pathfinding