Public Member Functions | |
| NavGridMultiRegionGraph (NavGridArray navGridArray_) | |
| override void | InitGraph () |
| InitGraph is used to allocate memory and initialize the graph for use. | |
| override PathNode | Node (int index) |
| Returns the graph node associated with the given index. Graph node indices are expected to remain constant during the lifetime of the graph, although connectivity may change. | |
| override int | Quantize (Vector3 location) |
| For the purpose of conserving processor speed - the quantize step will not return a distance. | |
| override Vector3 | Localize (int nodeIndex) |
| Localize determines the Vector3 location of the specified graph node. | |
| override PathBase | CreatePath (List< int > nodes, float cost) |
| Creates a PathBase object from an ordered list of nodes and a precomputed cost. | |
| bool | TryShortcut (int startNode, int endNode) |
| override float | HeuristicCost (int fromNodeIndex, int toNodeIndex) |
| A heuristic cost function estimating the cost from fromNodeIndex to toNodeIndex. For A*-based pathfinding to guarantee a shortest path, the heuristic cost must be less than or equal to the actual cost. The default heuristic cost is 0. | |
Public Attributes | |
| NavGridArray | navGridArray |
| float | stepUpHeight = 0f |
Properties | |
| override int | Size [get] |
| Returns the number of graph nodes in the graph. | |
| override PathBase RAIN.Path.NavGridMultiRegionGraph.CreatePath | ( | List< int > | nodeList, |
| float | cost | ||
| ) | [virtual] |
Creates a PathBase object from an ordered list of nodes and a precomputed cost.
| nodeList | |
| cost |
Implements RAIN.Path.PathGraph.
| override float RAIN.Path.NavGridMultiRegionGraph.HeuristicCost | ( | int | fromNodeIndex, |
| int | toNodeIndex | ||
| ) | [virtual] |
A heuristic cost function estimating the cost from fromNodeIndex to toNodeIndex. For A*-based pathfinding to guarantee a shortest path, the heuristic cost must be less than or equal to the actual cost. The default heuristic cost is 0.
| fromNodeIndex | The from node index |
| toNodeIndex | The to node index |
Reimplemented from RAIN.Path.PathGraph.
| override void RAIN.Path.NavGridMultiRegionGraph.InitGraph | ( | ) | [virtual] |
InitGraph is used to allocate memory and initialize the graph for use.
Implements RAIN.Path.PathGraph.
| override Vector3 RAIN.Path.NavGridMultiRegionGraph.Localize | ( | int | nodeIndex | ) | [virtual] |
Localize determines the Vector3 location of the specified graph node.
| nodeIndex | The index of the graph node to localize |
Implements RAIN.Path.PathGraph.
| override PathNode RAIN.Path.NavGridMultiRegionGraph.Node | ( | int | index | ) | [virtual] |
Returns the graph node associated with the given index. Graph node indices are expected to remain constant during the lifetime of the graph, although connectivity may change.
| index | The index of the graph node to retrieve |
Reimplemented from RAIN.Path.PathGraph.
| override int RAIN.Path.NavGridMultiRegionGraph.Quantize | ( | Vector3 | location | ) | [virtual] |
For the purpose of conserving processor speed - the quantize step will not return a distance.
| location | |
| distance |
Implements RAIN.Path.PathGraph.
override int RAIN.Path.NavGridMultiRegionGraph.Size [get] |
Returns the number of graph nodes in the graph.
Reimplemented from RAIN.Path.PathGraph.