float getWidth() | Returns the width of the Terrain. |
void setWidth(float value) | Sets the Terrain width to be "value" argument. |
float getMaxHeight() | Returns the maximum height of the Terrain. |
void setMaxHeight(float value) | Sets the maximum height of Terrain to be "value" argument. |
float getHeight(Point2 point) | Returns the height of the Terrain with its vertex index modified to be "point" argument. |
float getHeight(int x, int y) | Returns the height of the Terrain with its vertex index modified to be "x" and "y" arguments. |
void setHeight(Point2 point, float height) | Defines the Terrain vertex index to be "point" argument and its height to be "height" argument. |
void setHeight(int x, int y, float height) | Defines the Terrain vertex index to be "x" and "y" arguments and its height to be "height" argument. |
void applyHeight() | Apply the modified Terrain height to be "setHeight" methods. |
Point2 nearestVerticeAt(Vector3 worldCoord) | Returns the index of the vertex closest to the position passed to be "worldCoord" argument. |
int getResolution() | Returns the current Terrain resolution. |
void setResolution(int value) | Sets the Terrain resolution to be "value" argument. |
void applyRaiseLower(Vector2 worldCoordinates, float intensity, float size, [Brush] brush) | Apply a modeling to Terrain by adding mass upwards, or removing mass from Terrain with the position defined to be "worldCoodinates" argument, intensity to be "intensity" argument, size to be "size" argument, and Brush to be "brush" argument. |
void applyPaint(Vector2 worldCoordinates, float intensity, float size, float textureSize, int layerIndex, [Brush] brush) | Apply a painting to Terrain with the position defined to be "worldCoodinates" argument, intensity to be "intensity" argument, size to be "size" argument, texture size to be "textureSize" argument, layer to be "layerIndex" argument, and Brush to be " brush" argument. |