I have a slider which goes from 0 to 1 and oninput fires the ‘buttonClick’.
This code takes that (as far as I understand) and then uses the variables to move the camera.
This moves the camera to the target location smoothly.
But it only updates the target location once every second.
I am wondering if there is a way to update the targPos variable in such a way that if the slider is continuously moved, the camera moves to the new location smoothly, not in these ‘1 second blocks’.