redirect

fun redirect(newDestination: Point2D)(source)

Change the destination mid-travel. The integration loop sees the new target on its next step boundary and re-plans the direction from the agent's current position. Cumulative distanceTraveled keeps growing across the redirect.