Class: EntityView

EntityView

new EntityView(entity, scene, ellipsoid)

一个实用对象,用于使用摄像头跟踪实体。

Name Type Default Description
entity Entity

用相机跟踪的实体。

scene Scene

使用的场景。

ellipsoid Ellipsoid Ellipsoid.WGS84 可选

用于确定相机方向的椭球体。

Members

static defaultOffset3DCartesian3

获取或设置相机偏移量。用于初始化后续实体视图EntityView

boundingSphereBoundingSphere

The bounding sphere of the object.

ellipsoidEllipsoid

The ellipsoid to use for orienting the camera.

entityEntity

The entity to track with the camera.

sceneScene

The scene in which to track the object.

Methods

update(time, boundingSphere)

应在每个动画帧中调用,以便将相机更新为最新设置。

Name Type Description
time JulianDate

当前动画时间。

boundingSphere BoundingSphere

对象的包围球。