Click or drag to resize

AStarArePointsConnected Method

Returns whether the two given points are directly connected by a segment. If bidirectional is false, returns whether movement from id to to_id is possible through this segment.

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

Parameters

id
Type: SystemInt32

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

toId
Type: SystemInt32

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

bidirectional (Optional)
Type: SystemBoolean

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

Return Value

Type: Boolean

[Missing <returns> documentation for "M:Godot.AStar.ArePointsConnected(System.Int32,System.Int32,System.Boolean)"]

See Also