Skip to main content

Terrain

Complete API reference for Terrain, including constructors, attributes, virtual attributes, and methods.

Package: JAVARuntime

Category: Terrain

Component: yes


public class Terrain extends Component

Constructors

SignatureDescription
Terrain()Executes Terrain and returns after the underlying engine call finishes.

Attributes

NameTypeDescription
componentTerrainRepresents the component value stored on this instance. Read or assign to update the property.

Virtual Attributes

NameTypeAccessDescription
maxHeightfloatget/setVirtual attribute exposed by getMaxHeight. Access it like a field to read or write the underlying value.
resolutionintget/setVirtual attribute exposed by getResolution. Access it like a field to read or write the underlying value.
widthfloatget/setVirtual attribute exposed by getWidth. Access it like a field to read or write the underlying value.

Methods

SignatureReturnsDescription
isInsideTerrain(float, float)booleanExecutes isInsideTerrain and returns after the underlying engine call finishes.
isInsideTerrain(Vector3)booleanExecutes isInsideTerrain and returns after the underlying engine call finishes.
nearestVerticeAt(Vector3)Point2Executes nearestVerticeAt and returns after the underlying engine call finishes.
nearestLayerVerticeAt(Vector3)Point2Executes nearestLayerVerticeAt and returns after the underlying engine call finishes.
getWorldY(float, float)floatExecutes getWorldY and returns after the underlying engine call finishes.
getWorldY(Vector3)floatExecutes getWorldY and returns after the underlying engine call finishes.
getHeight(Point2)floatExecutes getHeight and returns after the underlying engine call finishes.
getHeight(int, int)floatExecutes getHeight and returns after the underlying engine call finishes.
setHeight(Point2, float)voidExecutes setHeight and returns after the underlying engine call finishes.
setHeight(int, int, float)voidExecutes setHeight and returns after the underlying engine call finishes.
getLayerIntensity(int, int, int)floatExecutes getLayerIntensity and returns after the underlying engine call finishes.
setLayerIntensity(int, int, int, float)voidExecutes setLayerIntensity and returns after the underlying engine call finishes.
getLayersCount()intExecutes getLayersCount and returns after the underlying engine call finishes.
getLayerAt(int)LayerExecutes getLayerAt and returns after the underlying engine call finishes.
addLayer(Layer)voidExecutes addLayer and returns after the underlying engine call finishes.
traceRay(Vector3, Vector3)LaserHitExecutes traceRay and returns after the underlying engine call finishes.
traceRay(Vector3, Vector3, float)LaserHitExecutes traceRay and returns after the underlying engine call finishes.
applyRaiseLower(Vector2, float, float, Brush)voidExecutes applyRaiseLower and returns after the underlying engine call finishes.
applyPaint(Vector2, float, float, float, int, Brush)voidExecutes applyPaint and returns after the underlying engine call finishes.
componentClassMatch(Component, Component)booleanExecutes componentClassMatch and returns after the underlying engine call finishes.
getEngineComponent()ComponentExecutes getEngineComponent and returns after the underlying engine call finishes.