【发布时间】:2019-09-10 14:49:51
【问题描述】:
我正在尝试通过更改时间刻度、帧速率等以交互方式控制动画...我刚才提到的那些我可以使用混音器正常工作。但是,当我尝试设置动画当前的位置时,事情似乎不起作用。设置混合器时间以及动画动作时间对动画没有任何作用。 这就是我正在尝试的方式。
function animate(){
var delta = sampling > 0 ? clock.getDelta() : 0;
requestAnimationFrame(animate);
if(mixer)
{
mixer.time += delta; // does nothing. Using constants does nothing either
mixer.update(delta); // Must have it or else the animation will bug.
action.time += delta; // does nothing. Using constants does nothing either
}
renderer.render(scene, camera);
}
【问题讨论】:
-
见我的question and answer。它可能会帮助你。