Animates a camera along a CameraPath.

Supports continuous playback, playback to a target time, scrubbing, and direct flight to a recorded frame.

Constructors

Properties

_cameraFlightAnimation: CameraFlightAnimation
_cameraPath?: CameraPath
_lastTime: number = null
_playingDir: number = 1.0
_playingFromT: number = 0
_playingRate: number = 1.0
_playingToT: number = 0
_t: number = 0
_tick: unknown

Scene containing the camera and tick event source.

state: CameraPathAnimationState = CameraPathAnimationState.SCRUBBING

Current playback state.

PLAYING: PLAYING = CameraPathAnimationState.PLAYING
PLAYING_TO: PLAYING_TO = CameraPathAnimationState.PLAYING_TO
SCRUBBING: SCRUBBING = CameraPathAnimationState.SCRUBBING
STOPPED: STOPPED = CameraPathAnimationState.STOPPED

Accessors

Methods

  • Simple quadratic ease-out helper.

    Parameters

    • t: number

      Current time

    • b: number

      Start value

    • c: number

      Delta value

    • d: number

      Duration

    Returns number

    Interpolated value