Constructors

Properties

animationDurationPadding: number = ...

This value can theoretically be anything – a value of 1 is good to clearly see animation gaps. For production, a value of 1/60 is enough, since the files can then still properly play back at 60fps.

Accessors

  • get frameRate(): number
  • Returns number

Methods

  • Parameters

    • track: KeyframeTrack

    Returns void

  • Returns number

  • Returns number

  • Parameters

    • generatePos: boolean = true
    • generateRot: boolean = true
    • generateScale: boolean = true

    Returns number[]

  • Returns an iterator that yields the values for each time sample. Values are reused objects - if you want to append them to some array instead of processing them right away, clone() them.

    Parameters

    • timesArray: number[]
    • generatePos: boolean = true
    • generateRot: boolean = true
    • generateScale: boolean = true

    Returns Generator<{
        index: number;
        rotation: Quaternion;
        scale: Vector3;
        time: number;
        translation: Vector3;
    }, void, unknown>