@pixi/3d
    Preparing search index...

    Class QuaternionTrackAdvanced

    Track for a rotation stored as a quaternion, such as a node's quaternion

    It slerps 'LINEAR' keyframes rather than blending each component, and renormalises 'CUBICSPLINE' samples to unit length.

    Hierarchy (View Summary)

    Index
    interpolation: InterpolationMode

    Interpolation algorithm used between keyframes

    label: string

    The property this track drives; TrackOptions#label has the format

    Keyframe times in seconds

    values: Float32Array

    Keyframe values; TrackOptions#values has the layout

    valueSize: number = 0

    Number of numeric components in each sampled value

    • Blends a sample in along the shortest arc, negating it first when it sits in the opposite hemisphere from the running average, so the blend doesn't cancel toward zero

      Parameters

      • values: Float32Array

        The running weighted average, updated in place

      • sample: Float32Array

        The freshly evaluated quaternion to blend in

      • t: number

        Blend factor for sample against values

      Returns void

    • Samples the track at a time, holding the first or last keyframe outside their range

      Parameters

      • time: number

        Time in seconds

      • index: number

        Keyframe index this returned last time, which shortens the search; 0 always works

      • target: Float32Array<ArrayBufferLike> | number[]

        Receives valueSize numbers

      Returns number

      The keyframe index to pass back as index next time