Camera pan according to roll rotation
I have a simple camera, it follows objects in the world. Sometimes, my camera is upside down, or 3/4 right. The roll (X) changes all the time.
On this camera, I have a simple pan blueprint (yaw and pitch). It works when the camera is straight (roll = 0). But, the pan is inverted when the camera is upside down. Normal so far.
Here, a wonderful sketch!
My question is, how to keep my yaw and pitch (Z and Y) always in the right direction, related to the roll (X) ? (-1 and 1 always at left and right or top and bot, and not inverted).
Thank you very much for help!
asked Oct 19 '17 at 04:15 PM in Blueprint Scripting
if you use add rotation to your actor , user add relative rotation instead of add world rotation and also you can ignore roll rotation on your actor too
answered Oct 24 '17 at 06:13 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here