Ok so I am fairly new with this method of getObjectsInRange, if someone could help out and tell me what I am doing incorrect that would be great. I am trying to make a laser disappear once it is in range of the rock, of which this code is embedded in. I keep getting a red line under "50,Laser.class" :)
Actor laser = getObjectsInRange(50,Laser.class);
if(laser!=null)
{
World world;
world = getWorld();
damageCount++;
world.removeObject(laser);
}

