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: 521
Reputation: 104763
PointerLockControls
now supports .minPolarAngle
and .maxPolarAngle
.
three.js r.118 (dev version)
Upvotes: 4