@pixi/3d
    Preparing search index...

    Interface AnimationOptions

    Options for creating an animation

    const options: AnimationOptions = {
    label: 'bob',
    tracks: [
    new Vector3Track({ label: 'Crate.position', times: [0, 0.5, 1], values: [0, 0, 0, 0, 1, 0, 0, 0, 0] }),
    ],
    };
    interface AnimationOptions {
        duration?: number;
        label: string;
        tracks?: readonly Track[];
    }
    Index
    duration?: number

    Length in seconds; left out, it is the time of the last keyframe across all tracks

    Set it past the last keyframe to hold the final pose before the animation loops.

    const blink = new Animation({
    label: 'blink',
    tracks: [
    new Vector3Track({ label: 'Eyelid.scale', times: [0, 0.1, 0.2], values: [1, 1, 1, 1, 0.1, 1, 1, 1, 1] }),
    ],
    duration: 4,
    });
    label: string
    player.addAnimations([new Animation({ label: 'wave', tracks })]);
    player.play('wave');
    tracks?: readonly Track[]

    Tracks the animation plays, each driving one property

    const shake = new Animation({
    label: 'shake',
    tracks: [new NumberTrack({ label: 'Camera.x', times: [0, 0.1, 0.2], values: [0, 0.2, 0] })],
    });