Creates a new CameraFlightAnimation
Optional
cfg: { duration: number }Animation duration in seconds when using CameraFlightAnimation.flyTo.
Readonly
cameraThe Camera controlled by this CameraFlightAnimation.
True once this Component has been destroyed.
Don't use this Component if this is true
.
Protected
dirtyUnique ID of this Component.
Readonly
onEmits an event each time the animation stops.
Readonly
onEmits an event each time the animation starts.
Readonly
onEmits an event each time the animation stops.
Readonly
viewThe View that owns this CameraFlightAnimation.
Gets the flight duration in seconds.
Default value is 0.5
.
Sets the flight duration in seconds.
Stops any flight currently in progress.
Default value is 0.5
.
When flying to a SceneModel, ViewObject or boundary, indicates if the CameraFlightAnimation always adjusts the distance of Camera.eye from Camera.look to ensure that the target always fits in view.
When false, the eye will remain fixed at its current distance from the look position.
Default value is true
.
When flying to a SceneModel, ViewObject or boundary, indicates if the CameraFlightAnimation always adjusts the distance of Camera.eye from Camera.look to ensure that the target always fits in view.
When false, the eye will remain fixed at its current distance from the look position.
Default value is true
.
Gets how much of the perspective field-of-view, in degrees, that a target ViewObject should fill the canvas when calling CameraFlightAnimation.flyTo or CameraFlightAnimation.jumpTo.
Default value is 45
.
Sets how much of the perspective field-of-view, in degrees, that a target ViewObject should fill the canvas when calling CameraFlightAnimation.flyTo or CameraFlightAnimation.jumpTo.
Default value is 45
.
Indicates if this CameraFlightAnimation will orient the Camera in the direction that it is flying.
Default value is false
.
Indicates if this CameraFlightAnimation will orient the Camera in the direction that it is flying.
Default value is false
.
Protected
cleanProtected
cleanProtected
errorFlies the Camera to a target.
Optional
params: {Either a parameters object or a Component subtype that has an AABB. Defaults to the Scene, which causes the Camera to fit the Scene in view.
Optional
aabb?: FloatArrayParamWorld-space axis-aligned bounding box (AABB) target to fly to.
Optional
duration?: numberFlight duration in seconds. Overrides CameraFlightAnimation.duration.
Optional
eye?: FloatArrayParamPosition to fly the eye position to.
Optional
fitFOV?: numberHow much of field-of-view, in degrees, that a target ViewObject or its AABB should fill the canvas on arrival. Overrides CameraFlightAnimation.fitFOV.
Optional
length?: numberOptional
look?: FloatArrayParamPosition to fly the look position to.
Optional
orthoScale?: numberAnimate the Camera's orthographic scale to this target value. See OrthoProjection.scale.
Optional
poi?: FloatArrayParamOptional
projection?: numberProjection type to transition into as we fly. Can be any of the values of Camera.projectionType | Camera.projectionType.
Optional
up?: FloatArrayParamPosition to fly the up vector to.
Optional
callback: (arg0: any) => voidCallback fired on arrival.
Protected
logProtected
setStops an earlier CameraFlightAnimation.flyTo, fires arrival callback, then "stopped" event.
Protected
warnEmits an event when the Component has been destroyed.
Animates a View's Camera to look at specified objects, boundaries or locations.
See @xeokit/sdk/cameraflight for usage.