farthestReachablePosition

open fun farthestReachablePosition(node: Node<T>, desired: P): P(source)

The farthest position that node reaches moving straight from its current position towards desired: desired itself, unless the constraints of this environment, such as its bounds, its obstacles, or the bodies of the other nodes, stop node earlier. moveNodeTo moves nodes to this position.