How can I clamp the rotation of a spring arm?

Hello, I am having a hard time finding a solution to clamping the pitch rotation with my current set up.

My goal is to limit the camera(spring arm) pitch to be only between 0 and -90 degrees.
With the blueprint i set up, it moves between -90 and 90 degrees by default, and I cannot figure out how or where to clamp it to limit rotation.

I am using enhanced input and have MoveCameraUp and down bound to W and S.

2 Likes

I found a solution while this post was being approved. It is very easy to set up.

You must create a player camera manager blueprint class.

With this open, and the root selected, you can scroll down in the details window to player camera manager and limit the pitch, yaw, and roll.

image

Then open your player controller blueprint, and reference your new player camera manager class in the details window.

image

finally, make sure your player controller is referenced in the game mode blueprint.

7 Likes

■■■■, thats so simple.
I always used a workaround - thanks mate!

I tried for a couple hours doing all those calculation but never worked the way I wanted, then I saw this post and got it done in under 3 min… you are much appreciated!