Stores temporary node data for a single pathfinding request.
More...
Stores temporary node data for a single pathfinding request.
Every node has one PathNode per thread used. It stores e.g G score, H score and other temporary variables needed for path calculation, but which are not part of the graph structure.
- See Also
- Pathfinding.PathHandler
-
https://en.wikipedia.org/wiki/A*_search_algorithm
|
uint | cost [get, set] |
|
uint | F [get] |
| F score.
|
|
bool | flag1 [get, set] |
| Use as temporary flag during pathfinding.
|
|
bool | flag2 [get, set] |
| Use as temporary flag during pathfinding.
|
|
uint | G [get, set] |
| G score, cost to get to this node.
|
|
uint | H [get, set] |
| H score, estimated cost to get to to the target.
|
|
|
const uint | CostMask = (1U << 28) - 1U |
| Cost uses the first 28 bits.
|
|
const uint | Flag1Mask = (uint)(1 << Flag1Offset) |
|
const int | Flag1Offset = 28 |
| Flag 1 is at bit 28.
|
|
const uint | Flag2Mask = (uint)(1 << Flag2Offset) |
|
const int | Flag2Offset = 29 |
| Flag 2 is at bit 29.
|
|
uint | flags |
| Bitpacked variable which stores several fields.
|
|
uint | g |
| Backing field for the G score.
|
|
uint | h |
| Backing field for the H score.
|
|
void UpdateG |
( |
Path |
path | ) |
|
const uint CostMask = (1U << 28) - 1U |
|
private |
Cost uses the first 28 bits.
const int Flag1Offset = 28 |
|
private |
const int Flag2Offset = 29 |
|
private |
Bitpacked variable which stores several fields.
Backing field for the G score.
Backing field for the H score.
Index of the node in the binary heap.
The open list in the A* algorithm is backed by a binary heap. To support fast 'decrease key' operations, the index of the node is saved here.
Reference to the actual graph node.
Parent node in the search tree.
The path request (in this thread, if multithreading is used) which last used this node.
F score.
H score + G score
Use as temporary flag during pathfinding.
Pathfinders (only) can use this during pathfinding to mark nodes. When done, this flag should be reverted to its default state (false) to avoid messing up other pathfinding requests.
Use as temporary flag during pathfinding.
Pathfinders (only) can use this during pathfinding to mark nodes. When done, this flag should be reverted to its default state (false) to avoid messing up other pathfinding requests.
G score, cost to get to this node.
H score, estimated cost to get to to the target.
The documentation for this class was generated from the following file:
- /Users/arong/unity/a-pathfinding-project/Assets/AstarPathfindingProject/Core/PathHandler.cs