setDestination

fun setDestination(newDestination: Euclidean2DPosition, voidVolatileMemory: Boolean = false)

Changes the destination of the strategy. If voidVolatileMemory is true, the node's volatile memory is reset to zero while preserving known impasses.

Parameters

newDestination

the new destination position.

voidVolatileMemory

whether to reset volatile memory (defaults to false).