Engine API Reference
    Preparing search index...

    Class AnimCurve

    Animation curve links an input data set to an output data set and defines the interpolation method to use.

    Index

    Constructors

    • 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

    Accessors

    • get input(): number

      The index of the AnimTrack input which contains the key data for this curve.

      Returns number

    • get interpolation(): number

      The interpolation method used by this curve.

      Returns number

    • get output(): number

      The index of the AnimTrack input which contains the key data for this curve.

      Returns number

    • get paths(): string[]

      The list of paths which identify targets of this curve.

      Returns string[]