Hi all,
I have a spherical mesh with objects positioned randomly all over it’s surface. The objects are parented to the sphere so that when the sphere rotates, so do the surface objects and they appear rooted to the ‘ground’. All good.
However, what I need to do though is rotate the spherical mesh to bring the clicked surface object into view (so if you click on a surface object near the spheres ‘edge’ as seen from the camera, the sphere needs to rotate so that the clicked object is bought to middle of the sphere as seen from the camera.
I’ve coded the click input for the objects and the rotation lerping for the sphere, but all I need to know is how do I calculate the quaternion target angle for the sphere to bring a clicked object into view?
Help would be MUCH appreciated ![]()