我有一个补间函数,可以使用“Easing.Elastic.Out”为摄像机角度设置动画。如何更改宽松的周期和幅度?
camera.lookAt(scene);
var controls = new THREE.OrbitControls(camera, renderer.domElement);
function camTweenLeft (startAngle){
var prevAngle=startAngle;
var tween = new TWEEN.Tween({angle:startAngle})
.to({angle:startAngle - 40*Math.PI/180},1000)
.easing(TWEEN.Easing.Elastic.Out)
.onUpdate(function(){
controls.rotateLeft(this.angle-prevAngle);
prevAngle=this.angle;
})
.start()
}