The camera rotates when the player holds the mouse button and moves it around. I also wanted the camera to smoothly interpolate. So this is the code that does that.
Now what I want is the camera to flip 180 degrees when it is directly above the player. Otherwise the camera would show the world upside down. I tried to implement in Blueprints but failed. This is what I have right now. The camera weirdly snaps to some arbitrary rotation when it crosses the 90 degree mark.


