Struct JobCreateTiles Extends IJob
Public
Builds tiles optimized for pathfinding, from a list of TileMesh.TileMeshUnsafe.
This job takes the following steps:
Transform all vertices using the graphToWorldSpace matrix.
Remove duplicate vertices
If recalculateNormals is enabled: ensure all triangles are laid out in the clockwise direction.
Public Methods
Execute
()
Public
Public Variables
graphIndex
Graph index of the graph that these nodes will be added to.
Public
graphTileCount
Number of tiles in the graph.
Public
graphToWorldSpace
Matrix to convert from graph space to world space.
Public
initialPenalty
Initial penalty for all nodes in the tile.
Public
recalculateNormals
If true, all triangles will be guaranteed to be laid out in clockwise order.
Public
tileRect
Rectangle of tiles that we are processing.
Public
tileWorldSize
Size of a tile in world units along the graph's X and Z axes.
Public