Hello everyone)
Please tell me how to add animations to the gltf model.
export const useAvatar = () => {
const avatar = useGLTF("/assets/avatars/y-bot.gltf");
const {actions, names} = useAnimations(avatar.animations, avatar.scene);
const {animations} = useCollection("Animations"); // array of links to animation files on firebase
return {avatar, actions, names};
}
currently avatar.animations === . I get the animations separately and want to add them to the model only when needed