API

Interface AnimationController

Drives playback of a skeletal/morph animation clip, advancing time and uploading bone matrices each tick.

interface AnimationController {
    loop: boolean;
    playing: boolean;
    speedRatio: number;
    time: number;
    tick(deltaMs: number, engine?: EngineContext): void;
}
Index
loop: boolean

Whether animation loops (default true).

playing: boolean

True if playing.

speedRatio: number

Playback speed multiplier (default 1).

time: number

Current playback time in seconds.