Engine API Reference - v2.23.0-beta.14
    Preparing search index...

    Class AnimCurve

    Animation curve links an input data set to an output data set and defines the interpolation method to use. The paths name the targets the curve drives, input and output index into the owning AnimTrack's keyframe time and value data, and interpolation is one of INTERPOLATION_STEP, INTERPOLATION_LINEAR or INTERPOLATION_CUBIC.

    Index
    • Create a new animation curve.

      Parameters

      • paths: string[]

        Array of path strings identifying the targets of this curve, for example "rootNode.translation".

      • input: number

        Index of the curve which specifies the key data.

      • output: number

        Index of the curve which specifies the value data.

      • interpolation: number

        The interpolation method to use. One of the following:

      Returns AnimCurve