travelThrough3D

suspend fun <A : AgentLike> KSLProcessBuilder.travelThrough3D(agent: A, space: ContinuousVolume<in A>, waypoints: List<Point3D>, velocity: Double, stepSize: Double = Travel.Defaults.stepSize): TravelResult(source)

Travel a sequence of waypoints in 3D order. Equivalent to a chain of travelTo3D 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 VoxelGraph.shortestPath: compute a path of voxels, convert each to its center coordinate via FlowField3D.centerOf (or your own helper), and travel through the waypoints.

See travelTo3D for the meaning of stepSize.