I have a object that moves at a variable speed. It can reach from 0 speed units up to N speed units.
I'm lerping the camera angle to rotate and look at the object smoothly and nice, like this:
camera.eulerAngles = Vector3.Lerp(initialAngle, finalAngle, speed / N);
The problem is when the object collides and the velocity decrease instantaneously to 0, the lerp happens very abruptly.
How can I make it handle this situation? I'd like a fast interpolation in this case, but no instantaneous like I'm seeing.