Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我似乎无法通过动画为 cameraZoom 设置动画。设置镜头。
我试图通过 setLens 向后移动凸轮并同时进行缩放。
有任何想法吗?
谢谢!
function zoomLens(lens, endLens){ var tweenLens = new TWEEN.Tween(lens).to(endLens, 2000); tweenLens.onUpdate(function(){ camera.setLens(lens); }); tweenLens.start(); }
在渲染循环中:
TWEEN.update();