1. I load new .gltf model with loader:
const loader = window.v3dApp.loader;
const url = ${Config.RESOURCES_URL + item.pathToModel}/scene.gltf
// Load a glTF resource
loader.load( url, gltf => {
console.log('animations', gltf.animations); // Array<v3d.AnimationClip>
console.log('scene', gltf.scene); // v3d.Scene
this.props.setPart(item, gltf);
} );
2. Then i add new mesh to the Scene:
const group = window.v3dApp.scene.getObjectByName(pivotName);
group.add(gltf.scene);
3. But i do not know what to do with:
gltf.animations[]
first do it, then do it right, then do it better.