Hey there, I had a similar question related to this issue, But this was a more specific problem.
**What I’m doing: **
I’ve got an Actor blueprint which has a SpringArm and camera attached to it. I’m Rotating and setting its location to be at the center of both (2) players.
**The Issue: **
When the Cameras actor rotation reaches a 90 or -90 degrees, the camera suddenly does a 180 flip.
**Video Showing the issue: ** CameraRotation problem - YouTube
But here is one problem. What should happen if characters change sides? When P1 make some big jump and pass location of P2. In this case, with this math, camera will flip. Maybe not instant flip, but it will.
So… Camera rotation should depend on some right and left side, but it shouldn’t depend on which character is on that side.