cancel

fun cancel()(source)

Stop motion at the agent's current interpolated position. The integration loop sees isCanceled on its next step check and exits with isComplete = false, isCanceled = true. awaitTravel then returns a TravelResult whose arrivedAt is the cancellation time and distance is the actual distance traveled so far.