我的代码是:
function move(){
var A = new TWEEN.Tween(meshA.position).to({ z: -10 }, 2000).start();
var B = new TWEEN.Tween(meshB.rotation).to({ z: Math.PI }, 2000);
var C = new TWEEN.Tween(meshC.position).to({ x: 10 }, 2000);
A.chain(B);
B.chain(C);
C.chain(A);
animate();
}
Run Code Online (Sandbox Code Playgroud)
但是,如果我想同时启动多个补间,如何编码。(A 和 B 一起移动,然后 C)。
在three.js中如何设置摄像机轨道的中心?(使用OrbitControls)
蛋:我想用
camera.lookAt(new THREE.Vector3( 100,50,200 )
并使我的相机绕这一点运行,而不是在0,0,0左右
怎么设置?