AStar2DGetPointConnections Method |
Returns an array with the IDs of the points that form the connection with the given point.
var astar = AStar2D.new() astar.add_point(1, Vector2(0, 0)) astar.add_point(2, Vector2(0, 1)) astar.add_point(3, Vector2(1, 1)) astar.add_point(4, Vector2(2, 0)) astar.connect_points(1, 2, true) astar.connect_points(1, 3, true) var neighbors = astar.get_point_connections(1) # Returns [2, 3]
Namespace: Godot
public int[] GetPointConnections( int id )
[Missing <param name="id"/> documentation for "M:Godot.AStar2D.GetPointConnections(System.Int32)"]
[Missing <returns> documentation for "M:Godot.AStar2D.GetPointConnections(System.Int32)"]