I want to focus on a mesh I clicked in react three fiber. When I click on a specific mesh I want the camera to focus & zoom on that mesh. How can I do that in react three fiber?
Edit: I found the solution in Drei but facing a new problem.
I’m using this code to focus on clicked mesh:
but the problem is it is taking the camera too close to the object. How can I focus on the object from little far from the object?
@drcmda can you help please?