EntityView

external class EntityView(var entity: Entity, var scene: Scene, var ellipsoid: Ellipsoid = definedExternally)(source)

A utility object for tracking an entity with the camera.

See also

Constructors

Link copied to clipboard
constructor(entity: Entity, scene: Scene, ellipsoid: Ellipsoid = definedExternally)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The bounding sphere of the object.

Link copied to clipboard

The ellipsoid to use for orienting the camera. Default value - Ellipsoid.default

Link copied to clipboard

The entity to track with the camera.

Link copied to clipboard

The scene to use.

Functions

Link copied to clipboard
fun update(time: JulianDate, boundingSphere: BoundingSphere? = definedExternally)

Should be called each animation frame to update the camera to the latest settings.