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
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
CeilDivision
(lhs, rhs)
Returns ceil(lhs/rhs), i.e lhs/rhs rounded up.
Private
Static
CollectTreeMeshes
(terrain, result)
Private
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
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
bounds
Private
Readonly
capsuleCache
Holds meshes for capsules to avoid generating duplicate capsule meshes for identical capsules.
Private
colliderRasterizeDetail
Private
Readonly
mask
Private
Readonly
tagMask
Private
Readonly
terrainSampleSize
Private
Readonly