Within my scene, I have several boxes and a PerspectiveCamera.
My goal is to create a specific effect that triggers when I click on one of the boxes:
- The camera smoothly transitions from its current position to focus on the selected box
- The selected box becomes centered in the camera's viewport
- The camera then zooms in and highlights the selected box
I drew inspiration for this effect from 100,000 Stars. In this project, clicking on a star would trigger the camera to zoom in on it and display it at the center of the view. My aim is to replicate this captivating effect.
Currently, I can retrieve the position of the selected box and look at it. However, I am eager to enhance this interaction further but uncertain about the next steps to take.