Spaces:
Running
Running
File size: 1,248 Bytes
2b7aae2 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | import { KeyframeTrack } from './KeyframeTrack';
import { Vector3 } from './../math/Vector3';
import { Bone } from './../objects/Bone';
import { AnimationBlendMode } from '../constants';
export interface MorphTarget {
name: string;
vertices: Vector3[];
}
export class AnimationClip {
constructor(name?: string, duration?: number, tracks?: KeyframeTrack[], blendMode?: AnimationBlendMode);
name: string;
tracks: KeyframeTrack[];
/**
* @default THREE.NormalAnimationBlendMode
*/
blendMode: AnimationBlendMode;
/**
* @default -1
*/
duration: number;
uuid: string;
results: any[];
resetDuration(): AnimationClip;
trim(): AnimationClip;
validate(): boolean;
optimize(): AnimationClip;
clone(): this;
toJSON(clip: AnimationClip): any;
static CreateFromMorphTargetSequence(name: string, morphTargetSequence: MorphTarget[], fps: number, noLoop: boolean): AnimationClip;
static findByName(clipArray: AnimationClip[], name: string): AnimationClip;
static CreateClipsFromMorphTargetSequences(morphTargets: MorphTarget[], fps: number, noLoop: boolean): AnimationClip[];
static parse(json: any): AnimationClip;
static parseAnimation(animation: any, bones: Bone[]): AnimationClip;
static toJSON(clip: AnimationClip): any;
}
|