So i have a camera on a tween that loops around 2 rooms, when the camera enters a room it focuses on the target i set in that room, the problem is it’s not smooth at all, i’ve found examples using quaternion with one object or on key presses but can’t understand how to do it automaticaly.
I’d create five parameters in the script, private boolean turning, private float time, private Vector3 initial, private Vector3 final, and private Vector3 disp.
Then in the start function, set turning to false and seconds to however much time you want (although depending on what function you’re running the whole thing in, the time might not be frame-rate independent, so watch out).