我试图从fdx对象更改动画片段,但它已添加到现有的动画网格中。
function startanimate(){
id = requestAnimationFrame(startanimate);
mixers[0].update(0.01);
}
function cancelanimate(){
cancelAnimationFrame(id);
}
function nextanimate(){
cancelAnimationFrame(id);
scene.children[3].mixer.clipAction(scene.children[3].animations[1]).play();
console.log(mixers);
requestAnimationFrame(startanimate);
}