【问题标题】:Is there a way to limit the angle of rotation of the camera with PointerLock controls in THREE.JS?有没有办法使用 THREE.JS 中的 PointerLock 控件来限制相机的旋转角度?
【发布时间】:2020-06-08 10:32:17
【问题描述】:

我想知道当我在 Three.js 中使用 PointerLock 控件时,是否有办法限制极角以使相机不会进入地面?类似于 Orbit 控件的 minPolarAngle 和 maxPolarAngle?

【问题讨论】:

标签: three.js pointerlock


【解决方案1】:

PointerLockControls 现在支持.minPolarAngle.maxPolarAngle

three.js r.118(开发版)

【讨论】:

  • 再见韦斯特兰利。感谢您为我们所做的一切。发布在您的最后一个答案上。
猜你喜欢
  • 1970-01-01
  • 2015-08-07
  • 2019-07-07
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2021-08-23
  • 2022-01-23
  • 1970-01-01
相关资源
最近更新 更多