Struct NavMeshGraphHeuristic
Basic heuristic provider for usage with the NavMeshGraph
Implements
Namespace: AnyPath.Graphs.NavMesh
Assembly: AnyPath.dll
Syntax
public struct NavMeshGraphHeuristic : IHeuristicProvider<NavMeshGraphLocation>
Methods
Heuristic(NavMeshGraphLocation)
Return a cost estimate from this node to the goal that was set by SetGoal
Declaration
public float Heuristic(NavMeshGraphLocation a)
Parameters
| Type | Name | Description |
|---|---|---|
| NavMeshGraphLocation | a |
Returns
| Type | Description |
|---|---|
| float |
SetGoal(NavMeshGraphLocation)
Gets called by A* before the algorithm begins, keep track of the goal internally.
Declaration
public void SetGoal(NavMeshGraphLocation goal)
Parameters
| Type | Name | Description |
|---|---|---|
| NavMeshGraphLocation | goal |