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).