Assume that this behavior has Separation behavior. I tried to implement the FollowLeader behavior from this article. In the code below is my working implementation. But there is a problem, when I convert the owner linear velocity to direction (North, South, East, West), it doesn't give the proper direction to achieve the correct facing of my animation.

    protected SteeringAcceleration<T> follow(SteeringAcceleration<T> steering, Steerable<T> leader) {
tv.nor();

// calculate the behind point
tv.scl(-1);

}

arrive(steering, behind);

// separation(..) assume exists

steering.linear.set(force);
steering.angular = angular;

return steering;
}


I fixed it, it's a little bit different when implementing using Gdx-ai. Here is the solution.

BlendedSteering<Vector2> followLeader = ...


evade.setEnabled(isOnLeaderSight(leader, getAhead(leader)));