setStartPosition

open override fun setStartPosition(startPosition: Translation2d?)

Set the start position to pathfind from. This method sets the initial position for the pathfinding algorithm.

Parameters

startPosition

Start position on the field as a Translation2d. If this is within an obstacle it will be moved to the nearest non-obstacle node.