在 THREE.JS 中有没有办法用 PointerLock 控件限制相机的旋转角度?

Is there a way to limit the angle of rotation of the camera with PointerLock controls in THREE.JS?

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

PointerLockControls 现在支持 .minPolarAngle.maxPolarAngle

three.js r.118(开发版)