Class RecastMeshGatherer

Package

Inner Types

Public Methods

CollectColliderMeshes (result)
Public
CollectRecastMeshObjs (buffer)

Find all relevant RecastMeshObj components and create ExtraMeshes for them.

Public
CollectSceneMeshes (meshes)
Public
CollectTerrainMeshes (rasterizeTrees, desiredChunkSize, result)
Public
RecastMeshGatherer (bounds, terrainSampleSize, mask, tagMask, colliderRasterizeDetail)
Public

Private/Protected Members

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
capsuleCache

Holds meshes for capsules to avoid generating duplicate capsule meshes for identical capsules.

Private
CeilDivision (lhs, rhs)

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

Private Static
CollectTreeMeshes (terrain, result)
Private
colliderRasterizeDetail
Private Readonly
FilterMeshes (meshFilters, tagMask, layerMask)
Private Static
GenerateHeightmapChunk (heights, sampleSize, offset, x0, z0, width, depth, stride)

Generates a terrain chunk mesh.

Private
GenerateTerrainChunks (terrain, bounds, desiredChunkSize, result)
Private
mask
Private Readonly
RasterizeBoxCollider (collider, localToWorldMatrix)
Private
RasterizeCapsuleCollider (radius, height, bounds, localToWorldMatrix)
Private
RasterizeCollider (col)

Rasterizes a collider to a mesh.

Private
RasterizeCollider (col, localToWorldMatrix)

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

Private
RecastAreaFromRecastMeshObj (obj)
Private Static
tagMask
Private Readonly
terrainSampleSize
Private Readonly