Is there a best practice way to add camera collisions to orbit controls

Ie. to stop a camera floating through stuff in the scene

Original Post on Discord

by user 103054507105067008

I think I’ve recommended this package to you before - it’s what we used for our website. It has a lot of those features builtin - GitHub - yomotsu/camera-controls: A camera control for three.js, similar to THREE.OrbitControls yet supports smooth transitions and more features.

Guess you’re too deep in your project by now to change it I guess?

Quite deep into our project, I’m either going to request an art change to move large objects far away from the camera’s orbit zone or implement some collision callbacks myself if I get time

by user 103054507105067008

I will consider using that camera controls in my next project for sure though!

by user 103054507105067008