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.
我正在使用three.js 轨迹球控件围绕我的对象旋转。但是,当用户不主动使用轨迹球时,我希望视图慢慢地围绕垂直轴旋转。
有人知道我会怎么做吗?我试着改变 camera.rotation.y 但它没有做任何事情。
谢谢鲍勃
最简单的解决方案是OrbitControls改用,并设置controls.autoRotate = true.
OrbitControls
controls.autoRotate = true