I want a code that makes the computer follow the ball, but it goes slower. I've been thinking about how to do this, but I don't know what to do. Anyone have any ideas? thanks


turnTowards(getWorld().getObjects(Ball.class).get(0).getX(),getWorld().getObjects(Ball.class).get(0).getY());
public void move() { Ball ball = (Ball) getWorld().getObjects(Ball.class).get(0); turnTowards(ball.getX(), ball.getY()); move(3); // adjust speed to suit }