I’m trying to animate camera.zoom (or something similar if there’s a better option) and controls.target (using Orbit Controls) on an event.
At this point I’ve got a (click)event that executes the following code
camera.zoom = 2;
camera.updateProjectionMatrix();
controls.target.set(orbs[i].position.x,orbs[i].position.y,orbs[i].position.z );
I’ve tried animating these using GSAP, but couldn’t figure out how to make this work.