How to block Orbit Controls to go inside models?

Hello, some time ago i saw an topic about a library that works with threejs and all it does is that when the orbit controls camera is going to get inside a model it is blocked or it ‘jumps’ to the another side of the object, anyone knows something like this that doesnt allow the user to go inside models with orbit controls ?

Maybe this? https://github.com/yomotsu/camera-controls

Here is something similar https://yomotsu.github.io/camera-controls/examples/collision.html

1 Like

exactly what i was looking for, thank you so much!

1 Like