set Destination
fun setDestination(newDestination: Euclidean2DPosition, voidVolatileMemory: Boolean = false)
Content copied to clipboard
Changes the destination of the strategy. If voidVolatileMemory is true, the pedestrian's volatile memory is set to zero. This has two effects:
known impasses remain stored (hence the pedestrian will keep avoiding them)
rooms visited while pursuing the previous destination won't be penalised (= won't be avoided) Defaults to false.