0

I was wondering if there is a way to limit the polar angle so the camera doesn't go into the ground when I'm using PointerLock controls in Three.js? Similar to the minPolarAngle and maxPolarAngle for Orbit controls?

WestLangley
  • 102,557
  • 10
  • 276
  • 276
Prav
  • 610
  • 8
  • 20

1 Answers1

3

PointerLockControls now supports .minPolarAngle and .maxPolarAngle.

three.js r.118 (dev version)

WestLangley
  • 102,557
  • 10
  • 276
  • 276
  • 1
    Goodbye WestLangley. Thanks for everything you have done for us. Posted on your last answer. – Halo Mar 01 '22 at 16:26