Click or drag to resize

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
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public Vector2[] GetSimplePath(
	Vector2 start,
	Vector2 end,
	bool optimize = true
)

Parameters

start
Type: GodotVector2

[Missing <param name="start"/> documentation for "M:Godot.Navigation2D.GetSimplePath(Godot.Vector2,Godot.Vector2,System.Boolean)"]

end
Type: GodotVector2

[Missing <param name="end"/> documentation for "M:Godot.Navigation2D.GetSimplePath(Godot.Vector2,Godot.Vector2,System.Boolean)"]

optimize (Optional)
Type: SystemBoolean

[Missing <param name="optimize"/> documentation for "M:Godot.Navigation2D.GetSimplePath(Godot.Vector2,Godot.Vector2,System.Boolean)"]

Return Value

Type: Vector2

[Missing <returns> documentation for "M:Godot.Navigation2D.GetSimplePath(Godot.Vector2,Godot.Vector2,System.Boolean)"]

See Also