Class RecastMeshGatherer
Public
Inner Types
Public Methods
AddMeshBuffers
(vertices, triangles)
Add vertex and triangle buffers that can later be used to create a GatheredMesh.
RecastMeshGatherer
(scene, bounds, terrainDownsamplingFactor, mask, tagMask, perLayerModifications, maxColliderApproximationError)
Public Static Methods
GenerateHeightmapChunk
(heights, holes, heightmapWidth, heightmapDepth, x0, z0, width, depth, stride, verts, tris)
Generates a terrain chunk mesh.
Public Variables
bounds
Public
Readonly
mask
Public
Readonly
scene
Public
Readonly
tagMask
Public
Readonly
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
CircleRadiusAdjustmentFactor
(steps)
If a circle is approximated by fewer segments, it will be slightly smaller than the original circle.
MeshType
Private
cachedMeshes
Private
cachedTreePrefabs
Private
Readonly
dummyMaterials
Private
maxColliderApproximationError
Private
Readonly
meshData
Private
Readonly
meshes
Private
meshesUnreadableAtRuntime
Private
Readonly
modificationsByLayer
Private
Readonly
modificationsByLayer2D
Private
Readonly
terrainDownsamplingFactor
Private
Readonly
triangleBuffers
Private
Readonly
vertexBuffers
Private
Readonly