Am using THREE.GLTFLoader
to load the glTF files in web and file is loaded and animations are working.
var loader = new THREE.GLTFLoader(manager);
loader.load( file_path , function ( data ) { }, function ( error ) { } );
/*play animations*/
var mixer = new THREE.AnimationMixer(gltf.scene);
mixers.push(mixer);
gltf.animations.forEach((clip) => {
for (i = 0; i < mixers.length; i++) {
mixers[i].clipAction(clip).reset().play();
}
});
how to rotate the nodes using three.js?
thanks in advance