Currently working with the flight template. Added this section to allow the camera to rotate left and right slightly when a yaw input is provided (similar to a neck rotating). Currently the camera jumps from the 0 value to the -15 or 15. Could anyone explain how I might smooth this out?
I can’t seem to figure out how to implement the finterpto node into this script and properly smooth that camera rotation. Could it be that my exec connection for the camera’s relative rotation is coming from that input yaw axis? Does this need to start at event begin play?
For smooth and consistent rotation you need to add two things. One is delta time, it’s necessary so that rotation speed doesn’t change if FPS changes. For smoothing out “arrival” and “departure” of rotation you could use InterpFloat. So the final setup would be like this:
Interp nodes need to be called on every tick to interpolate value, this is why interpolation is called separately on Tick. You could add it into the top graph and it will work, but only because you get input from Axis value, which is called all the time, example that I show is more generic and will work with simple button presses too.