Terrain
Terrain actor functions. Create terrain with CreateTerrainActor().
- Sub GetTerrainPatchAABB(actor, patchX, patchZ, ByRef minX, ByRef minY, ByRef minZ, ByRef maxX, ByRef maxY, ByRef maxZ)
Returns the bounding box of a terrain patch
- Function GetTerrainPatchLOD(actor, patchX, patchZ)
Returns the current level of detail for a terrain patch
- Function GetTerrainHeight(actor, patchX, patchZ)
Returns the height of a terrain patch
- Sub GetTerrainCenter(actor, ByRef x, ByRef y, ByRef z)
Gets the center point of a terrain actor
- Sub SetTerrainLODDistance(actor, LOD, distance)
Override the default generation of distance thresholds.
- Sub ScaleTerrainTexture(actor, scale, scale2)
Scales the base texture, similar to makePlanarTextureMapping.
- scale - The scaling amount. Values above 1.0 increase the number of time the texture is drawn on the terrain. Values below 0 will decrease the number of times the texture is drawn on the terrain. Using negative values will flip the texture, as well as still scaling it.
- scale2 - If set to 0 (default value), this will set the second texture coordinate set to the same values as in the first set. If this is another value than zero, it will scale the second texture coordinate set by this value.
- Sub SetTerrainCameraMovementDelta(actor, delta)
Sets the movement camera threshold.
It is used to determine when to recalculate indices for the actor. The default value is 10.
- Sub SetTerrainCameraRotationDelta(actor, delta)
Sets the rotation camera threshold.
It is used to determine when to recalculate indices for the scene node. The default value is 1.
- Sub SetTerrainPatchLOD(actor, patchX, patchZ, LOD)
Manually sets the LOD of a patch.