I need to return the nearest object in the world using a for loop. When there are no objects it should return null. I have a method distanceTo(Actor actor) that is able to calculate the distance to a certain object. I have googled and I cannot seem to get something that works for me. I need help!
