xWanna wrote...
How to do it? << get number of intersectors minus line of sight objects (count) >>
I think with a list, but can you tell me?int count = getIntersectingObjects(null).size() - getIntersectingObjects(LineOfSight.class).size();
int count = getIntersectingObjects(Wall.class).size(); // or int count = getIntersectingObjects(Obstacle.class).size(); // where Obstacle is super to all classes that create obstacles
boolean unobstructed = getIntersectingObjects(Wall.class).isEmpty();
