Animates a View's Camera to smoothly transition to a specified target, such as a component, bounding box, or viewpoint.

Use @xeokit/sdk/cameraflight to create cinematic camera motions.

Constructors

Properties

_aabbIndex: any
_callback: any
_callbackScope: any
_duration: number
_eye1: Vec3
_eye2: Vec3
_fit: boolean
_fitFOV: number
_flyEyeLookUp: boolean
_flying: boolean
_flyingEye: boolean
_flyingEyeLookUp: boolean
_flyingLook: boolean
_look1: Vec3
_look2: Vec3
_orthoScale1: number
_orthoScale2: number
_projection2: number
_projMatrix1: Mat4
_projMatrix2: Mat4
_time1: number
_time2: number
_trail: boolean
_up1: Vec3
_up2: Vec3
camera: Camera

The Camera controlled by this CameraFlightAnimation.

easing: boolean

Fires when the camera animation is cancelled.

Fires when the camera animation starts.

Fires when the camera animation completes.

view: View

The View that owns this CameraFlightAnimation.

Accessors

Methods

  • Animates the camera to a target viewpoint or bounding volume.

    • If a bounding box is provided, the camera will fly to frame the box within the view.
    • If eye, look, and up are provided, the camera will interpolate to that exact pose.

    Parameters

    • params: FlyToParams = {}

      Parameters defining the flight target and behavior.

    • Optionalcallback: (arg0: any) => void

      Optional callback invoked after the flight completes.

    Returns void

  • Instantly moves the camera to a specified viewpoint or bounding volume, without animation.

    • If a bounding box is provided, the camera will immediately frame it in the view.
    • If eye, look, and up are provided, the camera will immediately assume that pose.

    Parameters

    • params: any

      Target camera state or bounding box.

    Returns void