Hi, i was wondering where the error is within my code because an error message pops up whenever there is a collision.
public void act()
{
move();
eat();
if (isAtEdge()) getWorld().removeObject(this);
}
public void move()
{
setRotation(270);
move(8);
}
public void eat()
{
Actor helicopter = getOneIntersectingObject(Helicopter.class);
if(helicopter != null)
{
World myWorld = getWorld();
myWorld.removeObject(helicopter);
myWorld.removeObject(this);
}
}

