I am trying to find the coordinates of the Ball class and if the equal 0 then i want to remove a certain object from the world. This following code is in the world class and i keep getting the cannot find symbol error and i think the problem is that it doesn't know what the Y coordinate is for that object but i don't know how to let it know what the coordinates are.
public void removeCatcher()
{
if (getY(Ball.class) == 0)
{
removeObject();
}
}
