在学习threejs ,在blender里做好的模型动画可以通过gui来控制速率,帧动画等效果。同时我也用tweenjs来控制摄像头的运动效果,该如何控制tweenjs的动画效果可以实现播放速度,帧播放等效果?又该如何使模型动画和摄像头运动相比配?
this.action0.play()
//this.action0.loop = THREE.LoopOnce
this.action0.paused = true
let animationGUI = gui.addFolder("动画控制器");
animationGUI.add(this.action0, 'time', 0, 4).step(0.1).name("播放帧动画");
animationGUI.add(this.action0, 'timeScale', 0, 3).step(0.1).name("播放速度");
animationGUI.add(this.action0, 'paused').name("暂停播放")
if (this.start == false) {
this.tween.chain(this.tween1);
this.tween1.chain(this.tween2);
this.tween.start();
this.tween2.onComplete(() => {
this.finishAnimation()
});
} else {
this.camera1.position.set(-35, 90, -35)
}
有没有什么方法可以滚动条控制tweenjs的播放