A* Pathfinding Project  4.3.7
The A* Pathfinding Project for Unity 3D
GridGraph.GridGraphScanData Struct Reference

Classes

struct  CopyBuffersJob
 

Public Member Functions

void AllocateBuffers ()
 
JobHandle AssignToNodes (GridNode[] nodes, Int2 nodeArrayBounds, IntRect writeMask, uint graphIndex, JobHandle nodesDependsOn, NativeArray< float4 > nodeSurfaceNormals)
 
void CalculateWalkabilityFromHeightData (bool useRaycastNormal, bool unwalkableWhenNoGround, float maxSlope)
 
void CollisionCheck (GraphCollision collision)
 
void Connections (float maxStepHeight, bool maxStepUsesSlope, NumNeighbours neighbours, bool cutCorners, bool use2D, bool useErodedWalkability)
 
void Erosion (NumNeighbours neighbours, int erodeIterations, IntRect erosionWriteMask)
 
void HeightCheck (GraphCollision collision)
 
void ReadFromNodes (GridNode[] nodes, Int2 nodeArrayBounds, IntRect readBounds, JobHandle nodesDependsOn, NativeArray< float4 > graphNodeNormals)
 
GridGraphScanData ReadFromNodesAndCopy (GridNode[] nodes, Int2 nodeArrayBounds, IntRect readBounds, JobHandle nodesDependsOn, NativeArray< float4 > graphNodeNormals)
 
void SetDefaultNodePositions (GraphTransform transform)
 
void SetDefaultPenalties (uint initialPenalty)
 

Public Attributes

Allocator allocationMethod
 
IntRect bounds
 
JobDependencyTracker dependencyTracker
 
NativeArray< RaycastHit > heightHits
 
NativeArray< int > nodeConnections
 
NativeArray< float4 > nodeNormals
 
NativeArray< uint > nodePenalties
 
NativeArray< Vector3 > nodePositions
 
NativeArray< int > nodeTags
 
NativeArray< bool > nodeWalkable
 
NativeArray< bool > nodeWalkableWithErosion
 
int numNodes
 
GraphTransform transform
 
Vector3 up
 

Member Function Documentation

◆ AllocateBuffers()

void AllocateBuffers ( )

◆ AssignToNodes()

JobHandle AssignToNodes ( GridNode []  nodes,
Int2  nodeArrayBounds,
IntRect  writeMask,
uint  graphIndex,
JobHandle  nodesDependsOn,
NativeArray< float4 >  nodeSurfaceNormals 
)

◆ CalculateWalkabilityFromHeightData()

void CalculateWalkabilityFromHeightData ( bool  useRaycastNormal,
bool  unwalkableWhenNoGround,
float  maxSlope 
)

◆ CollisionCheck()

void CollisionCheck ( GraphCollision  collision)

◆ Connections()

void Connections ( float  maxStepHeight,
bool  maxStepUsesSlope,
NumNeighbours  neighbours,
bool  cutCorners,
bool  use2D,
bool  useErodedWalkability 
)

◆ Erosion()

void Erosion ( NumNeighbours  neighbours,
int  erodeIterations,
IntRect  erosionWriteMask 
)

◆ HeightCheck()

void HeightCheck ( GraphCollision  collision)

◆ ReadFromNodes()

void ReadFromNodes ( GridNode []  nodes,
Int2  nodeArrayBounds,
IntRect  readBounds,
JobHandle  nodesDependsOn,
NativeArray< float4 >  graphNodeNormals 
)

◆ ReadFromNodesAndCopy()

GridGraphScanData ReadFromNodesAndCopy ( GridNode []  nodes,
Int2  nodeArrayBounds,
IntRect  readBounds,
JobHandle  nodesDependsOn,
NativeArray< float4 >  graphNodeNormals 
)

◆ SetDefaultNodePositions()

void SetDefaultNodePositions ( GraphTransform  transform)

◆ SetDefaultPenalties()

void SetDefaultPenalties ( uint  initialPenalty)

Member Data Documentation

◆ allocationMethod

Allocator allocationMethod

◆ bounds

IntRect bounds

◆ dependencyTracker

JobDependencyTracker dependencyTracker

◆ heightHits

NativeArray<RaycastHit> heightHits

◆ nodeConnections

NativeArray<int> nodeConnections

◆ nodeNormals

NativeArray<float4> nodeNormals

◆ nodePenalties

NativeArray<uint> nodePenalties

◆ nodePositions

NativeArray<Vector3> nodePositions

◆ nodeTags

NativeArray<int> nodeTags

◆ nodeWalkable

NativeArray<bool> nodeWalkable

◆ nodeWalkableWithErosion

NativeArray<bool> nodeWalkableWithErosion

◆ numNodes

int numNodes

◆ transform

GraphTransform transform

◆ up

Vector3 up

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