Struct JobBuildTileMeshFromVoxels Extends IJob
Public
Builds tiles from a polygon soup using voxelization.
This job takes the following steps:
Voxelize the input meshes
Filter and process the resulting voxelization in various ways to remove unwanted artifacts and make it better suited for pathfinding.
Extract a walkable surface from the voxelization.
Triangulate this surface and create navmesh tiles from it.
This job uses work stealing to distribute the work between threads. The communication happens using a shared queue and the currentTileCounter atomic variable.
Public Methods
Execute
()
Public
SetCounter
(counter)
Public
SetOutputMeshes
(arr)
Public
Public Variables
backgroundTraversability
Public
cellHeight
Public
cellSize
Public
characterRadiusInVoxels
Public
contourMaxError
Public
currentTileCounter
Public
dimensionMode
Public
graphToWorldSpace
Public
inputMeshes
Public
maxEdgeLength
Public
maxSlope
Public
maxTiles
Max number of tiles to process in this job.
Public
minRegionSize
Public
outputMeshes
Public
relevantGraphSurfaceMode
Public
relevantGraphSurfaces
Public
tileBorderSizeInVoxels
Public
tileBuilder
Public
tileGraphSpaceBounds
Public
voxelToTileSpace
Public
voxelWalkableClimb
Public
voxelWalkableHeight
Public
Private/Protected Members
MarkerBuildCompactField
Private
Static
Readonly
MarkerBuildConnections
Private
Static
Readonly
MarkerBuildContours
Private
Static
Readonly
MarkerBuildDistanceField
Private
Static
Readonly
MarkerBuildMesh
Private
Static
Readonly
MarkerBuildRegions
Private
Static
Readonly
MarkerConvertAreasToTags
Private
Static
Readonly
MarkerErodeWalkableArea
Private
Static
Readonly
MarkerFilterLedges
Private
Static
Readonly
MarkerFilterLowHeightSpans
Private
Static
Readonly
MarkerRemoveDuplicateVertices
Private
Static
Readonly
MarkerTransformTileCoordinates
Private
Static
Readonly
MarkerVoxelize
Private
Static
Readonly