travel Through
suspend fun <A : AgentLike> KSLProcessBuilder.travelThrough(agent: A, space: ContinuousProjection<in A>, waypoints: List<Point2D>, velocity: Double, stepSize: Double = Travel.Defaults.stepSize): TravelResult(source)
Travel a sequence of waypoints in order. Equivalent to a chain of travelTo calls, returning the cumulative result. The agent starts from its current position and visits each waypoint in order; the last waypoint is the final destination.
Useful in combination with GridGraph.shortestPath: compute a path of cells, convert each cell to its center coordinate, and travel through the waypoints.