can someone help me with the code for getting the position of another actor. I tried the following code but got an error message that Actor not in the world.
My code
public void act()
{
// Add your action code here.
Cars car=new Cars();
int x= car.getX();
int y=car.getY();
turnTowards(x,y);
move(1);
}

