Camera flipping on rotation issue
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: https://youtu.be/jS8ntx04RNw
How can i get rid of this unwanted behaviour?
Thanks in advance! -SamuelB
asked Nov 25 '17 at 09:21 PM in Using UE4
I think there is a problem in using FindLookAt results, but this is really not a point.
For now you need to understand a logic of this camera setup.
Two characters can be on right and left side of a camera. For example, P1 on right and P2 on left. SpringArm location will be:
Rotation can be calculated according to character's sides.
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.
answered Nov 26 '17 at 04:49 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here