I’m trying to clamp the y axis rotation of my actor with a spring arm and a camera component to prevent it from making the view upside down. I tried clamping it from -90 to 90 degrees, which seems to work until I move my mouse further than 90 degrees. When it hits the clamp, the actor itself rotates around, changes the direction of the axis. So after a few mouse swipes, my camera ends up lying sideways, and I can’t turn it back to normal.
tldr; How can I limit my camera’s rotation from -90 to 90 degrees and keep the directions of the axes?