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中放大和缩小模型。我遇到了轨迹球控件,但没有限制缩放的功能或属性。也尝试使用轨道控件,但与轨迹球控件一起使用时,我会发现旋转和平移方面的一些问题。
提前致谢。
我正在使用不支持限制缩放的 THREE.js version70。在当前 THREE.js 版本 83 的轨迹球控件中,我们可以使用以下代码限制放大和缩小,
controls.minDistance = 10; controls.maxDistance = 100;