Interface AnimationController
interface AnimationController {
loop: boolean;
playing: boolean;
speedRatio: number;
time: number;
tick(deltaMs: number, engine?: EngineContext): void;
}
loop: boolean;
playing: boolean;
speedRatio: number;
time: number;
tick(deltaMs: number, engine?: EngineContext): void;
}
Properties
loop
loop: boolean
Whether animation loops (default true).
playing
playing: boolean
True if playing.
speed Ratio
speedRatio: number
Playback speed multiplier (default 1).
time
time: number
Current playback time in seconds.
Methods
tick
-
Advance animation by deltaMs and update bone textures.
Parameters
- deltaMs: number
Optionalengine: EngineContext
Returns void
Drives playback of a skeletal/morph animation clip, advancing time and uploading bone matrices each tick.