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

Calculates the grid connections for a set of nodes. More...

Detailed Description

Calculates the grid connections for a set of nodes.

This is a IJobParallelForBatch job. Calculating the connections in multiple threads is faster but due to hyperthreading (used on most intel processors) the individual threads will become slower. It is still worth it though.

Public Member Functions

void Execute (int start, int count)
 
bool IsValidConnection (float4 nodePosA, float4 nodeNormalA, int nodeB, float4 up)
 Check if a connection to node B is valid. More...
 

Public Attributes

bool allowBoundsChecks => false
 
IntRect bounds
 
bool cutCorners
 
float maxStepHeight
 
bool maxStepUsesSlope
 
NumNeighbours neighbours
 
NativeArray< int > nodeConnections
 All bitpacked node connections. More...
 
NativeArray< float4 > nodeNormals
 
NativeArray< Vector3 > nodePositions
 
NativeArray< bool > nodeWalkable
 
Vector3 up
 Normalized up direction. More...
 
bool use2D
 

Additional Inherited Members

- Properties inherited from IJobParallelForBatch
bool allowBoundsChecks [get]
 

Member Function Documentation

◆ Execute()

void Execute ( int  start,
int  count 
)

Implements IJobParallelForBatch.

◆ IsValidConnection()

bool IsValidConnection ( float4  nodePosA,
float4  nodeNormalA,
int  nodeB,
float4  up 
)

Check if a connection to node B is valid.

Node A is assumed to be walkable already

Member Data Documentation

◆ allowBoundsChecks

bool allowBoundsChecks => false

◆ bounds

IntRect bounds

◆ cutCorners

bool cutCorners

◆ maxStepHeight

float maxStepHeight

◆ maxStepUsesSlope

bool maxStepUsesSlope

◆ neighbours

NumNeighbours neighbours

◆ nodeConnections

NativeArray<int> nodeConnections

All bitpacked node connections.

◆ nodeNormals

NativeArray<float4> nodeNormals

◆ nodePositions

NativeArray<Vector3> nodePositions

◆ nodeWalkable

NativeArray<bool> nodeWalkable

◆ up

Vector3 up

Normalized up direction.

◆ use2D

bool use2D

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