Animates a View's Camera to look at specified objects, boundaries or locations.

See @xeokit/sdk/cameraflight for usage.

Hierarchy (View Summary)

Constructors

Properties

camera: Camera

The Camera controlled by this CameraFlightAnimation.

destroyed: boolean

True once this Component has been destroyed.

Don't use this Component if this is true.

dirty: boolean
easing: boolean
id: string

Unique ID of this Component.

Emits an event each time the animation stops.

Emits an event each time the animation starts.

Emits an event each time the animation stops.

view: View

The View that owns this CameraFlightAnimation.

Accessors

Methods

  • Protected

    Logs an error for this component to the JavaScript console.

    The console message will have this format: [ERROR] [<component type> =<component id>: <message>

    Parameters

    • message: string

      The error message to log

    Returns void

  • Jumps the Camera to the given target.

    • When the target is a boundary, this CameraFlightAnimation will position the Camera at where the target fills most of the canvas.
    • When the target is an explicit Camera position, given as eye, look and up vectors, then this CameraFlightAnimation will jump the Camera to that target.

    Parameters

    • params: any

      Either a parameters object or a Component subtype that has a World-space AABB.

    Returns void

  • Protected

    Logs a message for this component.

    The message will have this format: [LOG] [<component type> <component id>: <message>

    Parameters

    • message: string

      The message to log

    Returns void

  • Protected

    Logs a warning for this component to the JavaScript console.

    The console message will have this format: [WARN] [<component type> =<component id>: <message>

    Parameters

    • message: string

      The warning message to log

    Returns void

Events

onDestroyed: EventEmitter<Component, null>

Emits an event when the Component has been destroyed.