Hi There,
I would like main camera to change both position and angle at the same time (Lets say in 10 seconds)
It is easy with position:
float distCovered = (Time.time - startTime);
float fracJourney = distCovered / 10;
Camera.main.transform.position = Vector3.Lerp (startPosition, endPosition, fracJourney);
But how do handle rotation?
There is Quaternion.Slerp, that takes as third parameter T.
And how to calculate that T?
I believe it could sth like
Camera.main.transform.rotation = Quaternion.Slerp(startRotation, currenEndRotation, differenceBetweenTwoAngles * fracJourney);
thanks