Function ConstantPath.Construct

Construct (Vector3 start, int maxGScore, OnPathDelegate callback=null)

Constructs a ConstantPath starting from the specified point.

Public Static
ConstantPath Construct (

Vector3

start

From where the path will be started from (the closest node to that point will be used).

int

maxGScore

Searching will be stopped when a node has a G score (cost to reach the node) greater than this.

OnPathDelegate

callback=null

Will be called when the path has been calculated, leave as null if you use a Seeker component.

)

Constructs a ConstantPath starting from the specified point.

Searching will be stopped when a node has a G score (cost to reach it) greater or equal to maxGScore in order words it will search all nodes with a cost to get there less than maxGScore.