Appearance
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
staticdefaultOffset3D: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
The current animation time.
boundingSphere?
bounding sphere of the object.
返回
void
构造函数
构造函数
new EntityView(
entity:Entity,scene:Scene,ellipsoid?:Ellipsoid):EntityView
参数
entity
scene
ellipsoid?
返回
EntityView
