@0b5vr/experimental
    Preparing search index...

    Class Clock

    Class that deals with time. In this base class, you need to set time manually from Automaton.update(). Best for sync with external clock stuff.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    __deltaTime: number = 0.0

    Its deltaTime of last update.

    __isPlaying: boolean = false

    Whether its currently playing or not.

    __time: number = 0.0

    Its current time.

    Accessors

    • get deltaTime(): number

      Its deltaTime of last update.

      Returns number

    • get isPlaying(): boolean

      Whether its currently playing or not.

      Returns boolean

    Methods

    • Set the time manually.

      Parameters

      • time: number

        Time

      Returns void

    • Update the clock.

      Parameters

      • Optionaltime: number

        Time. You need to set manually when you are using manual Clock

      Returns void