setGoalPosition

open override fun setGoalPosition(goalPosition: Translation2d?)

Set the goal position to pathfind to. This method sets the target position for the pathfinding algorithm.

Parameters

goalPosition

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