Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CameraAnimationSpinModel

Camera animation for spinning the model around the given axis and point.

The camera will keep its distance to the given rotation point and the current up vector. The animation will orbit the model giving the illusion that the model is spinning around the prescribed axis.

The speed of the camera movement can be controlled with setting the duration of a full rotation.

Hierarchy

  • CameraAnimationSpinModel

Implements

Index

Constructors

constructor

Methods

isAbortableByUserNavigation

  • isAbortableByUserNavigation(): boolean
  • Whether this camera animation should be aborted if user navigation/interaction is detected

    Returns boolean

isAnimationDone

  • isAnimationDone(): boolean
  • Query if the camera animation is finished.

    Returns boolean

setFullRotationDuration

  • setFullRotationDuration(durationInSeconds: number): void
  • Set the duration, in seconds, of one complete 360 degree rotation

    Parameters

    • durationInSeconds: number

    Returns void

setIsAbortableByUserNavigation

  • setIsAbortableByUserNavigation(isAbortable: boolean): void
  • Set the duration, in seconds, of one complete 360 degree rotation

    Parameters

    • isAbortable: boolean

    Returns void

setRotationPointAndAxis

  • Set rotation point and rotation axis

    Parameters

    Returns void

setTargetFrameRate

  • setTargetFrameRate(framesPerSecond: number): void
  • Set the target camera animation speed in frames per second (max FPS)

    Parameters

    • framesPerSecond: number

    Returns void

updateCamera

  • updateCamera(highResTimestamp_ms: number, isResumingAfterPause: boolean): boolean
  • Updates the camera

    Parameters

    • highResTimestamp_ms: number
    • isResumingAfterPause: boolean

    Returns boolean

Generated using TypeDoc