Spaces:
Running
Running
File size: 2,116 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 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | import { AnimationMixer } from './AnimationMixer';
import { AnimationClip } from './AnimationClip';
import { AnimationActionLoopStyles, AnimationBlendMode } from '../constants';
import { Object3D } from '../core/Object3D';
// Animation ////////////////////////////////////////////////////////////////////////////////////////
export class AnimationAction {
constructor(mixer: AnimationMixer, clip: AnimationClip, localRoot?: Object3D, blendMode?: AnimationBlendMode);
blendMode: AnimationBlendMode;
/**
* @default THREE.LoopRepeat
*/
loop: AnimationActionLoopStyles;
/**
* @default 0
*/
time: number;
/**
* @default 1
*/
timeScale: number;
/**
* @default 1
*/
weight: number;
/**
* @default Infinity
*/
repetitions: number;
/**
* @default false
*/
paused: boolean;
/**
* @default true
*/
enabled: boolean;
/**
* @default false
*/
clampWhenFinished: boolean;
/**
* @default true
*/
zeroSlopeAtStart: boolean;
/**
* @default true
*/
zeroSlopeAtEnd: boolean;
play(): AnimationAction;
stop(): AnimationAction;
reset(): AnimationAction;
isRunning(): boolean;
isScheduled(): boolean;
startAt(time: number): AnimationAction;
setLoop(mode: AnimationActionLoopStyles, repetitions: number): AnimationAction;
setEffectiveWeight(weight: number): AnimationAction;
getEffectiveWeight(): number;
fadeIn(duration: number): AnimationAction;
fadeOut(duration: number): AnimationAction;
crossFadeFrom(fadeOutAction: AnimationAction, duration: number, warp: boolean): AnimationAction;
crossFadeTo(fadeInAction: AnimationAction, duration: number, warp: boolean): AnimationAction;
stopFading(): AnimationAction;
setEffectiveTimeScale(timeScale: number): AnimationAction;
getEffectiveTimeScale(): number;
setDuration(duration: number): AnimationAction;
syncWith(action: AnimationAction): AnimationAction;
halt(duration: number): AnimationAction;
warp(statTimeScale: number, endTimeScale: number, duration: number): AnimationAction;
stopWarping(): AnimationAction;
getMixer(): AnimationMixer;
getClip(): AnimationClip;
getRoot(): Object3D;
}
|