Struct JobCalculateGridConnections Extends IJobParallelForBatched

Public

Calculates the grid connections for all 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 Methods

Execute (start, count)
Public
ExecuteFlat (start, count)
Public
ExecuteLayered (start, count)
Public

Public Static Methods

IsValidConnection (nodePosA, nodeNormalA, nodeWalkableB, nodePosB, nodeNormalB, maxStepUsesSlope, maxStepHeight, up)

Check if a connection to node B is valid.

Public Static

Public Variables

allowBoundsChecks
Public
arrayBounds
Public
bounds
Public
characterHeight
Public
cutCorners
Public
layeredDataLayout
Public
maxStepHeight
Public
maxStepUsesSlope
Public
neighbours
Public
nodeConnections

All bitpacked node connections.

Public
nodeNormals
Public
nodePositions
Public
nodeWalkable
Public
up

Normalized up direction.

Public
use2D
Public