UNPKG

webgl-gltf

Version:
26 lines (25 loc) 802 B
interface ActiveAnimation { key: string; elapsed: number; } /** * Sets the active animation * @param track Animation track * @param key Animation set key * @param model GLTF Model * @param animation Animation key */ declare const pushAnimation: (track: string, key: string, model: string, animation: string) => void; /** * Gets the current and previous animation * @param key Animation set key * @param model GLTF Model */ declare const getActiveAnimations: (key: string, model: string) => {} | null; /** * Advances the animation * @param elapsed Time elasped since last update * @param key Animation set key */ declare const advanceAnimation: (elapsed: number, key?: string | undefined) => void; export { pushAnimation, getActiveAnimations, advanceAnimation, ActiveAnimation, };