A* Pathfinding Project  4.3.5
The A* Pathfinding Project for Unity 3D
JobErosion Struct Reference

Calculates the grid connections for a single node. More...

Detailed Description

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).

See also
CalculateConnections(GridNodeBase)

Public Member Functions

void Execute ()
 

Public Attributes

IntRect bounds
 
int erosion
 
NumNeighbours neighbours
 
NativeArray< int > nodeConnections
 
NativeArray< bool > nodeWalkable
 
NativeArray< bool > outNodeWalkable
 
IntRect writeMask
 

Static Public Attributes

static readonly int [] hexagonNeighbourIndices = { 1, 2, 5, 0, 3, 7 }
 

Member Function Documentation

◆ Execute()

void Execute ( )

Member Data Documentation

◆ bounds

IntRect bounds

◆ erosion

int erosion

◆ hexagonNeighbourIndices

readonly int [] hexagonNeighbourIndices = { 1, 2, 5, 0, 3, 7 }
static

◆ neighbours

NumNeighbours neighbours

◆ nodeConnections

NativeArray<int> nodeConnections

◆ nodeWalkable

NativeArray<bool> nodeWalkable

◆ outNodeWalkable

NativeArray<bool> outNodeWalkable

◆ writeMask

IntRect writeMask

The documentation for this struct was generated from the following file: