How to restrict the pitch value of camera in third person template?

i am working on a third person player template.I need to restrict the pitch value of camera of third person player.I need to restrict pitch so that camera doesn’t go below the floor.

the question its not clear, maybe you can post an image?

Be sure that the spring arm collision is ok ,

By the way , you can try to use an your own channel for the collision?
in the project settings , you can set up your own , then
just use the collision panel to ignore all but your channel .
here the docs

sorry for being not clear,i have edited the question.

Here i found a post…
Never done before myself , try this, they should put a limit to the pitch limit,
i dont see the green answer , but its surely the right spot.

.
Good Luck

0
Hello,

I am not sure if there is a better way or not, but the only way I have found is by using the “Get Player Camera Management” block, in there you will find two variables “View Pitch Min” and “View Pitch Max” if you set these manually prior to reaching the “Add Controller Pitch Input” this will restrict the camera movement between the min and max pitch.

Call it a manual clamp :wink:

to find the correct segments you will need to have “context match” unchecked.

the other way is to create a class from scratch and manually code the restriction in, for me the BP is the easiest way and it actually works!

Bear in mind I use Unreal Engine 4.10 (not sure if it is in the older versions or not)

How ever the principle is the same as for the YAW, see second screenshot.

I hope this helps

Screenshot below:

3 Likes

Perfect. Works great.
Had no idea there was a Set limits like that.
.
Not so much a learning curve, more a learning cliff… I don’t remember Pascal being this tricky.