English中文

EntityView

new Cesium.EntityView(entity, scene, ellipsoid)

用于使用相机跟踪实体的实用程序对象。 A utility object for tracking an entity with the camera.
名称 Name 类型 Type 默认值 Default 说明 Description
entity Entity 使用相机跟踪的实体。 The entity to track with the camera.
scene Scene 使用场景。 The scene to use.
ellipsoid Ellipsoid Ellipsoid.default 可选 optional 用于定向相机的椭球体。 The ellipsoid to use for orienting the camera.

成员 Members

static Cesium.EntityView.defaultOffset3D : Cartesian3

获取或设置将用于初始化后续 EntityView 的相机偏移量。 Gets or sets a camera offset that will be used to initialize subsequent EntityViews.
物体的边界球体。 The bounding sphere of the object.
用于定向相机的椭球体。 The ellipsoid to use for orienting the camera.
使用相机跟踪的实体。 The entity to track with the camera.
跟踪对象的场景。 The scene in which to track the object.

方法 Methods

update(time, boundingSphere)

应该调用每个动画帧来将相机更新到最新设置。 Should be called each animation frame to update the camera to the latest settings.
名称 Name 类型 Type 说明 Description
time JulianDate 当前动画时间。 The current animation time.
boundingSphere BoundingSphere 可选 optional 物体的边界球。 bounding sphere of the object.
需要帮助吗?获得答案的最快方法是从社区和团队那里获得答案 Need help? The fastest way to get answers is from the community and team on the Cesium Forum.