Pular para o conteúdo principal

Class: STerrain

This page documents the methods and fields available in the STerrain class.

Members

SignatureDescription
addLayer(Layer)Adds layer to the collection.
applyPaint(Vector2, float, float, float, int, Brush)Performs the applyPaint operation using the provided parameters (worldCoordinates, intensity, size, textureSize, layerIndex, brush).
applyRaiseLower(Vector2, float, float, Brush)Performs the applyRaiseLower operation using the provided parameters (worldCoordinates, intensity, size, brush).
getAlbedo()Returns the current albedo.
getHeight(Point2)Returns the current height.
getHeight(int, int)Returns the current height.
getLayerAt(int)Returns the current layer at.
getLayerIntensity(int, int, int)Returns the current layer intensity.
getLayersCount()Returns the current layers count.
getMaxHeight()Returns the current max height.
getNormal()Returns the current normal.
getResolution()Returns the current resolution.
getSize()Returns the current size.
getSpecular()Returns the current specular.
getWidth()Returns the current width.
getWorldY(Vector3)Returns the current world y.
getWorldY(float, float)Returns the current world y.
isInsideTerrain(Vector3)Returns whether inside terrain is true.
isInsideTerrain(float, float)Returns whether inside terrain is true.
nearestLayerVerticeAt(Vector3)Performs the nearestLayerVerticeAt operation using the provided parameters (worldCoord).
nearestVerticeAt(Vector3)Performs the nearestVerticeAt operation using the provided parameters (worldCoord).
setHeight(Point2, float)Sets or updates the height.
setHeight(int, int, float)Sets or updates the height.
setLayerIntensity(int, int, int, float)Sets or updates the layer intensity.
setMaxHeight(float)Sets or updates the max height.
setResolution(int)Sets or updates the resolution.
setSize(float)Sets or updates the size.
setSpecular(float)Sets or updates the specular.
setWidth(float)Sets or updates the width.
traceRay(Vector3, Vector3)Performs the traceRay operation using the provided parameters (origin, direction).
traceRay(Vector3, Vector3, float)Performs the traceRay operation using the provided parameters (origin, direction, distance).