As it is, the SmoothFollow.js works pretty good. However, I need it to follow my target faster when they are falling. The player gets away from the camera too fast and is too small on the screen.
How can we make the camera follow the target faster?
Any help is really appreciated.
Thanks!
Have you tried changing heightDamping value in the Inspector? A larger value should cause the camera to react faster.
Note the line of code that handles the smooth motion is this one:
currentHeight = Mathf.Lerp (currentHeight, wantedHeight, heightDamping * Time.deltaTime);
You can replace the Mathf.Lerp with Mathf.MoveTowards() to get a more linear movement (no easing at the end).