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=…)
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
CalculateBoundDelegate
(vertices, localToWorldMatrix, bounds)
Private
CalculateBounds
(vertices, localToWorldMatrix, bounds)
Private
Static
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, 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
(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
tagMask
Private
Readonly
terrainSampleSize
Private
Readonly
triangleBuffers
Private
vertexBuffers
Private