TerrainPlanting
Description
- Derived from
Plants instanced geometry onto the terrain surface.
Use TerrainMesh.PlantingAdd and TerrainMesh.PlantingRemove to control planting of instanced geometry for a TerrainMesh. In addition to the planting settings defined by PlantingOptions, this class provides terrain-specific settings. The following settings further control the terrain regions where geometry is planted:
The other settings fine-control where the configured Model instances are placed:
-
Normal
Chooses the alignment of the planted geometry (terrain up-vector vs. surface normal vector). -
Offset
The vertical offset to use for translating the planted geometry along its normal vector, as defined by Normal. -
Scale
This uniformly scales the model geometry, before applying the other settings related to positioning.
- See also
Public / Attributes
Curvature
Clamps the allowed terrain curvature.
The curvature value is the minimum dot-product between the terrain surface normal vector and the normal vectors at the corners of the corresponding terrain mesh sector. A value of 1
means that the mesh sector is flat and a value of almost 0
means that the mesh sector is bend over almost 90°. Defaults to 0
.
- See also
Enabled
Is this terrain planting options object enabled, i.e. geometry instances will be planted onto the terrain?
Defaults to true
.