Click or drag to resize

AStarConnectPoints Method

Creates a segment between the given points. If bidirectional is false, only movement from id to to_id is allowed, not the reverse direction.

var astar = AStar.new()
astar.add_point(1, Vector3(1, 1, 0))
astar.add_point(2, Vector3(0, 5, 0))
astar.connect_points(1, 2, false)

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public void ConnectPoints(
	int id,
	int toId,
	bool bidirectional = true
)

Parameters

id
Type: SystemInt32

[Missing <param name="id"/> documentation for "M:Godot.AStar.ConnectPoints(System.Int32,System.Int32,System.Boolean)"]

toId
Type: SystemInt32

[Missing <param name="toId"/> documentation for "M:Godot.AStar.ConnectPoints(System.Int32,System.Int32,System.Boolean)"]

bidirectional (Optional)
Type: SystemBoolean

[Missing <param name="bidirectional"/> documentation for "M:Godot.AStar.ConnectPoints(System.Int32,System.Int32,System.Boolean)"]

See Also