new EntityView(entity, scene, ellipsoidopt)
A utility object for tracking an entity with the camera.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
entity |
Entity | The entity to track with the camera. | ||
scene |
Scene | The scene to use. | ||
ellipsoid |
Ellipsoid |
<optional> |
Ellipsoid.WGS84 | The ellipsoid to use for orienting the camera. |
- Source:
Members
(static) defaultOffset3D :Cartesian3
Gets or sets a camera offset that will be used to
initialize subsequent EntityViews.
Type:
- Source:
boundingSphere :BoundingSphere
The bounding sphere of the object.
Type:
- Source:
ellipsoid :Ellipsoid
The ellipsoid to use for orienting the camera.
Type:
- Source:
entity :Entity
The entity to track with the camera.
Type:
- Source:
scene :Scene
The scene in which to track the object.
Type:
- Source:
Methods
update(time, current)
Should be called each animation frame to update the camera
to the latest settings.
Parameters:
Name | Type | Description |
---|---|---|
time |
JulianDate | The current animation time. |
current |
BoundingSphere | bounding sphere of the object. |
- Source: