Computes the target position for the agent considering its current position and the path.
Implements AIMFollowPath.