Taos API Reference
    Preparing search index...

    Class Clock

    A simulation clock — the analog of CesiumJS Clock. Advances currentTime by multiplier × dt each tick, honoring clockRange at the bounds.

    Index

    Constructors

    Properties

    startTime: number
    stopTime: number
    currentTime: number
    multiplier: number
    clockRange: ClockRange
    shouldAnimate: boolean

    Accessors

    • get fraction(): number

      Fraction of the [start, stop] span at currentTime, in [0,1].

      Returns number

    Methods

    • Advance by dtRealSeconds of wall-clock time. Returns the new currentTime.

      Parameters

      • dtRealSeconds: number

      Returns number

    • Set currentTime, applying the clock-range policy. Returns the clamped/looped value.

      Parameters

      • t: number

      Returns number