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?

Here is something similar

1 Like

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

1 Like