A* Pathfinding Project
4.3.2
The A* Pathfinding Project for Unity 3D
|
Calculates the grid connections for a single node. More...
Calculates the grid connections for a single node.
Note that to ensure that connections are completely up to date after updating a node you have to calculate the connections for both the changed node and its neighbours.
In a layered grid graph, this will recalculate the connections for all nodes in the (x,z) cell (it may have multiple layers of nodes).
Public Member Functions | |
void | Execute () |
Public Attributes | |
IntRect | bounds |
int | erosion |
NumNeighbours | neighbours |
NativeArray< int > | neighbourXOffsets |
NativeArray< int > | neighbourZOffsets |
NativeArray< int > | nodeConnections |
NativeArray< bool > | nodeWalkable |
NativeArray< bool > | outNodeWalkable |
void Execute | ( | ) |
IntRect bounds |
int erosion |
NumNeighbours neighbours |
NativeArray<int> neighbourXOffsets |
NativeArray<int> neighbourZOffsets |
NativeArray<int> nodeConnections |
NativeArray<bool> nodeWalkable |
NativeArray<bool> outNodeWalkable |