I've been working on a game. In the game, the background is made up of Ground objects. The 'background' is a grid of these Ground objects. I did this because I want each tile to respond to light sources individually. However, I also want the game to be infinite in all directions. To avoid slowing the game down, I want to remove Ground objects if they arent within a 600 pixel radius of the player. That was the easy part. I also wanted to add Ground objects within a 600 px radius of the player. I was wondering if there is some sort of method to check if there is already a ground peice at a given location. I want to do something along the lines of:
the 40 and 89 are x and y values(the location to check)
if(!isActorAt(Ground.class,40,89)){
getWorld().addObject(new Ground(),40,89);
}

