Click or drag to resize

NavigationGetSimplePath Method

Returns the path between two given points. Points are in local coordinate space. If optimize is true (the default), the agent properties associated with each NavigationMesh (radius, height, etc.) are considered in the path calculation, otherwise they are ignored.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public Vector3[] GetSimplePath(
	Vector3 start,
	Vector3 end,
	bool optimize = true
)

Parameters

start
Type: GodotVector3

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

end
Type: GodotVector3

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

optimize (Optional)
Type: SystemBoolean

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

Return Value

Type: Vector3

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

See Also