I have setup a transition of camera between 2 transform, here the result in video: https://youtu.be/rcwQ6KuEfMw
I have the information of the 2 transform: - position (vector3) - rotation (Quaternion)
And I do a Lerp, from Position1 to Position 2, and from Rotation1 to Rotation2:
Vector3 finalPosition = Vector3.Lerp(previousPosition, nextPosition, evaluateValueLerp);
Quaternion finalRotation = Quaternion.Slerp(previousRotation, nextRotation, evaluateValueLerp);
Now the problem is, as you can see in the video: the player target (the car) is lost durring the transition, I would like to keep it always in the view.
How can I manage to do it ?
Thanks you !