Reputation: 610
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?
Upvotes: 0
Views: 527
Reputation: 104843
PointerLockControls
now supports .minPolarAngle
and .maxPolarAngle
.
three.js r.118 (dev version)
Upvotes: 4