Small World Engine API Reference - v0.78.00
    Preparing search index...

    Class KeyframeTrack

    Represents a single animation track animating a property of an Object3D/Bone over time.

    Index
    interpolation: InterpolationType
    property: TrackType
    targetName: string
    times: Float32Array
    values: Float32Array
    • Samples this track at the given time. Valid only for tracks with property === "rotation". The returned Quaternion is owned scratch state, reused across calls -- copy it before the next call to sampleQuaternion/sampleVector on this same track if it must be retained.

      Parameters

      • time: number

      Returns Quaternion

    • Samples this track at the given time. Valid only for tracks with property === "translation" or property === "scale". The returned Vector3D is owned scratch state, reused across calls -- copy it before the next call to sampleQuaternion/sampleVector on this same track if it must be retained.

      Parameters

      • time: number

      Returns Vector3D