Class RecastMeshGathererBurst

Package

Inner Types

Public Methods

CollectColliderMeshes ()
Public
CollectRecastMeshObjs ()

Find all relevant RecastMeshObj components and create ExtraMeshes for them.

Public
CollectSceneMeshes ()
Public
CollectTerrainMeshes (rasterizeTrees, desiredChunkSize)
Public
Finalize ()
Public
RecastMeshGathererBurst (bounds, terrainSampleSize, mask, tagMask, colliderRasterizeDetail)
Public

Private/Protected Members

AddMeshBuffers (vertices, triangles)
Private
AddMeshBuffers (vertices, triangles)
Private
AddNewMesh (renderer, mesh, area, solid=…, areaIsTag=…)
Private
anyNonReadableMesh
Private
bounds
Private Readonly
BoxColliderTris

Box Collider triangle indices can be reused for multiple instances.

Private Static Readonly
BoxColliderVerts

Box Collider vertices can be reused for multiple instances.

Private Static Readonly
cachedMeshes
Private
cachedTreePrefabs
Private
CalculateBounds (vertices, numVertices, localToWorldMatrix, bounds)
Private Static
CalculateBoundsDelegate (vertices, numVertices, localToWorldMatrix, bounds)
Private
CalculateBoundsInvoke
Private Static Readonly
CeilDivision (lhs, rhs)

Returns ceil(lhs/rhs), i.e lhs/rhs rounded up.

Private Static
CollectTreeMeshes (terrain)
Private
colliderRasterizeDetail
Private Readonly
GenerateHeightmapChunk (heights, holes, sampleSize, offset, x0, z0, width, depth, stride)

Generates a terrain chunk mesh.

Private
GenerateTerrainChunks (terrain, bounds, desiredChunkSize)
Private
GetColliderMesh (col)

Rasterizes a collider to a mesh.

Private
GetColliderMesh (collider, localToWorldMatrix)
Private
GetColliderMesh (col, localToWorldMatrix)

Rasterizes a collider to a mesh assuming it's vertices should be multiplied with the matrix.

Private
mask
Private Readonly
meshData
Private
meshes
Private
MeshFilterShouldBeIncluded (filter)
Private
MeshType
Private
RasterizeBoxCollider (collider, localToWorldMatrix)
Private
RasterizeCapsuleCollider (radius, height, bounds, localToWorldMatrix)
Private
RecastAreaFromRecastMeshObj (obj)
Private Static
ShouldIncludeCollider (collider)
Private
tagMask
Private Readonly
terrainSampleSize
Private Readonly
triangleBuffers
Private
vertexBuffers
Private