Hi,
I have a top-down camera (-Z) that follow a pawn using a spring arm with some lag. I need my camera to always point at that pawn. This imply some rotation when the arm is late because of the lag. That camera can rotate on its yaw and pitch axes but can’t roll (so north is always at the top of the screen).
I’ve tried to script it, using the security camera bluprint from Blueprints example project. This resulted in this, among many other tries :
I’ve got two issues :
- I can’t get the yaw and pitch to work while blocking the roll
- The camera refuses to pitch more than -90 degrees. It turns around and pitch up again (which seems to be a normal behavior for a FPS game but I need my camera to be upside down sometime)
I’m not very comfortable with 3D geometry. Do you have a solution or example to my problem?
Thanks !