AStar.addPoint

Adds a new point at the given position with the given identifier. The algorithm prefers points with lower weight_scale to form a path. The id must be 0 or larger, and the weight_scale must be 1 or larger.

More...
struct AStar
@nogc nothrow
void
addPoint
(
in long id
,
in Vector3 position
,
in double weight_scale = 1
)

Detailed Description

var as = AStar.new()

as.add_point(1, Vector3(1,0,0), 4) # Adds the point (1,0,0) with weight_scale=4 and id=1

If there already exists a point for the given id, its position and weight scale are updated to the given values.

Meta