Navigation2DGetSimplePath Method |
Returns the path between two given points. Points are in local coordinate space. If optimize is true (the default), the path is smoothed by merging path segments where possible.
Namespace: Godot
public Vector2[] GetSimplePath( Vector2 start, Vector2 end, bool optimize = true )
[Missing <param name="start"/> documentation for "M:Godot.Navigation2D.GetSimplePath(Godot.Vector2,Godot.Vector2,System.Boolean)"]
[Missing <param name="end"/> documentation for "M:Godot.Navigation2D.GetSimplePath(Godot.Vector2,Godot.Vector2,System.Boolean)"]
[Missing <param name="optimize"/> documentation for "M:Godot.Navigation2D.GetSimplePath(Godot.Vector2,Godot.Vector2,System.Boolean)"]
[Missing <returns> documentation for "M:Godot.Navigation2D.GetSimplePath(Godot.Vector2,Godot.Vector2,System.Boolean)"]