AStarGetClosestPoint Method |
Returns the ID of the closest point to to_position, optionally taking disabled points into account. Returns -1 if there are no points in the points pool.
Note: If several points are the closest to to_position, the one with the smallest ID will be returned, ensuring a deterministic result.
Namespace: Godot
public int GetClosestPoint( Vector3 toPosition, bool includeDisabled = false )
[Missing <param name="toPosition"/> documentation for "M:Godot.AStar.GetClosestPoint(Godot.Vector3,System.Boolean)"]
[Missing <param name="includeDisabled"/> documentation for "M:Godot.AStar.GetClosestPoint(Godot.Vector3,System.Boolean)"]
[Missing <returns> documentation for "M:Godot.AStar.GetClosestPoint(Godot.Vector3,System.Boolean)"]