Skip to content

KBE3D / KBCore / Cesium / EntityView

类: EntityView

A utility object for tracking an entity with the camera.

参数

The entity to track with the camera.

参数

The scene to use.

参数

The ellipsoid to use for orienting the camera.

属性

defaultOffset3D

static defaultOffset3D: Cartesian3

Gets or sets a camera offset that will be used to initialize subsequent EntityViews.


entity

entity: Entity

The entity to track with the camera.


scene

scene: Scene

The scene in which to track the object.


ellipsoid

ellipsoid: Ellipsoid

The ellipsoid to use for orienting the camera.


boundingSphere

boundingSphere: BoundingSphere

The bounding sphere of the object.

方法

update()

update(time: JulianDate, boundingSphere?: BoundingSphere): void

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

参数

time

JulianDate

The current animation time.

boundingSphere?

BoundingSphere

bounding sphere of the object.

返回

void

构造函数

构造函数

new EntityView(entity: Entity, scene: Scene, ellipsoid?: Ellipsoid): EntityView

参数

entity

Entity

scene

Scene

ellipsoid?

Ellipsoid

返回

EntityView

KBE3D @3.0.0 Copyright © 2024-present KBE3D