Fudge Core
    Preparing search index...

    Class AnimationChannelAbstract

    Stores the path and keyframe data to animate a single property within a node hierarchy. The keyframes are stored in an input/output buffer pair: a set of scalar values representing the timestamps; and a set of elements (scalar, vector, quaternion etc.) representing the animated property. Interpolation between keyframes is defined by the set ANIMATION_INTERPOLATION. When used with cubic interpolation, for each timestamp there must be three associated keyframe elements: in-tangent, property value, and out-tangent.

    Example vector3-input-output:

    input: [t0, t1, ...]

    output: [e0x, e0y, e0z, e1x, e1y, e1z, ...]

    Example vector2-input-cubic-output: in and out tangents (a, b) and elements (e) must be grouped within keyframes.

    input: [t0, t1, ...]

    output: [a0x, a0y, e0x, e0y, b0x, b0y, a1x, a1y, e1x, e1y, b1x, b1y, ...]

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    input: Float32Array
    output: Float32Array
    targetPath: string

    Methods

    • Returns the size of a single element in the output buffer, which is the number of values per element. e.g. 3 for a vector3, 4 for a quaternion, 1 for a scalar.

      Returns number

    • Interpolates between keyframe[i-1] and keyframe[i] using the given t value in the range [0, 1].

      Parameters

      • _i1: number
      • _t: number
      • _out: Float32Array

      Returns void