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)
ExecuteFlat (start, count)
ExecuteLayered (start, count)

Public Static Methods

ConnectionY (nodePositions, nodeNormals, normalToHeightOffset, nodeIndex, dir, up, reverse)
ConnectionYRange (nodePositions, nodeNormals, normalToHeightOffset, nodeIndex, layerStride, y, maxY, dir, up, reverse)
HeightOffsetProjections (graphToWorldTranform, maxStepUsesSlope)
IsValidConnection (..., maxStepHeight, ...)

Public Variables

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

All bitpacked node connections.

Public
nodeNormals
Public
nodePositions
Public
nodeWalkable
Public
use2D
Public