AStar2DConnectPoints 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 = AStar2D.new() astar.add_point(1, Vector2(1, 1)) astar.add_point(2, Vector2(0, 5)) astar.connect_points(1, 2, false)
Namespace: Godot
public void ConnectPoints( int id, int toId, bool bidirectional = true )
[Missing <param name="id"/> documentation for "M:Godot.AStar2D.ConnectPoints(System.Int32,System.Int32,System.Boolean)"]
[Missing <param name="toId"/> documentation for "M:Godot.AStar2D.ConnectPoints(System.Int32,System.Int32,System.Boolean)"]
[Missing <param name="bidirectional"/> documentation for "M:Godot.AStar2D.ConnectPoints(System.Int32,System.Int32,System.Boolean)"]