UNPKG

playcanvas

Version:

PlayCanvas WebGL game engine

51 lines (50 loc) 1.5 kB
/** * Animation curve links an input data set to an output data set and defines the interpolation * method to use. * * @category Animation */ export class AnimCurve { /** * Create a new animation curve. * * @param {string[]} paths - Array of path strings identifying the targets of this curve, for * example "rootNode.translation". * @param {number} input - Index of the curve which specifies the key data. * @param {number} output - Index of the curve which specifies the value data. * @param {number} interpolation - The interpolation method to use. One of the following: * * - {@link INTERPOLATION_STEP} * - {@link INTERPOLATION_LINEAR} * - {@link INTERPOLATION_CUBIC} */ constructor(paths: string[], input: number, output: number, interpolation: number); _paths: string[]; _input: number; _output: number; _interpolation: number; /** * The list of paths which identify targets of this curve. * * @type {string[]} */ get paths(): string[]; /** * The index of the AnimTrack input which contains the key data for this curve. * * @type {number} */ get input(): number; /** * The index of the AnimTrack input which contains the key data for this curve. * * @type {number} */ get output(): number; /** * The interpolation method used by this curve. * * @type {number} */ get interpolation(): number; }