AStar.connectPoints

Creates a segment between the given points.

More...
struct AStar
@nogc nothrow
void
connectPoints
(
in long id
,
in long to_id
,
in bool bidirectional = true
)

Detailed Description

var as = AStar.new()

as.add_point(1, Vector3(1,1,0)) as.add_point(2, Vector3(0,5,0))

as.connect_points(1, 2, false) # If bidirectional=false it's only possible to go from point 1 to point 2 # and not from point 2 to point 1.

Meta