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

Use @xeokit/sdk/viewing/cameraFlight to create cinematic camera motions.

Constructors

Properties

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