DistanceDisplayCondition

external class DistanceDisplayCondition(var near: Double = definedExternally, var far: Double = definedExternally)(source)

Determines visibility based on the distance to the camera.

// Make a billboard that is only visible when the distance to the camera is between 10 and 20 meters.
billboard.distanceDisplayCondition = new DistanceDisplayCondition(10.0, 20.0);

See also

Constructors

Link copied to clipboard
constructor(near: Double = definedExternally, far: Double = definedExternally)

Types

Link copied to clipboard

Properties

Link copied to clipboard
var far: Double

The largest distance in the interval where the object is visible. Default value - Number.MAX_VALUE

Link copied to clipboard

The smallest distance in the interval where the object is visible. Default value - 0.0

Functions

Link copied to clipboard
fun clone(result: DistanceDisplayCondition? = definedExternally): DistanceDisplayCondition

Duplicates this instance.