Hi everyone
I've started yesterday playing around with GSAP for work and so far i'm having a lot of fun :D.
My objective is to have a simple 3d object at the center of my scene and a camera to rotate around it. So far so good.
But i'm having trouble implementing a reset function for the camera, when a button is clicked the camera should go back to the starting position with an animation.
https://jsfiddle.net/tomthebearded/dkug68to/
As you can see when you run the jsfiddle what i've tried until now is changing the position of the camera with gsap.to but it's not right effect for my project. Changing the position in this way makes the camera basically move close to the center before moving out to reach the final position.
What i need is more a rotation around the object to reach a defined position.
Is there a way to achieve this?