Hello Guys,
i’ve been working on a project and i need your help.
I have this scene that is a sphere containing 4 planes and camera inside so my problem is when i click on the plane to do some action i want the camera to rotate so it face the object ( sometimes a small part of the object/plane appear in the screen so when i click on it the camera should rotate to face it with a transition animation).
i know that i have to use the useFrame or useThree to do so but nothing happens maybe because of the way i setup my camera inside the sphere.
i have no clue how to do it so can u help me plz ?
Am kinda noobie in three.js world also here a demo i did:
https://codesandbox.io/s/flamboyant-http-1bgoyc?file=/src/App.js
and thank you.