How to get scroll wheel zoom to be smoother?
I created a zoom mechanism for my game using SetRelativeLocationAndRotation on my camera component with 5 different zoom state locations. It does what I want. However I want the the camera to travel between location states smoothly instead of just appearing there in an instant. How would I do this? I would like to use c++ if possible.
Check out the various Lerp options in FMath.
You may need to update the SetRelativeLocationAndRotation in Tick or a Timer, from the returned value of the Lerp, so that it updates smoothly over time. But the basics of it is to use some Interpolation (Lerp/Linear is just one approach).
answered May 26 '18 at 09:58 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here