Rotate Camera To Look At Selected Object In Three.js
I am trying to design a map. So, when I select any geometry, I want the object to come at the centre of the viewport and the camera to be looking at it. I have spent quite a lot of
Solution 1:
If you are using Orbit or Trackball controls in your project it won't work by just changing lookAt of the camera. You need to change the target of the controls as well. To experiment, just try to disable the controls and then change look at for Camera.
Post a Comment for "Rotate Camera To Look At Selected Object In Three.js"