# How Setup Clamp Camera Rotation?

**URL:** <https://forums.unrealengine.com/t/how-setup-clamp-camera-rotation/455220>\
**Category:** Cinematics & Media\
**Tags:** details-panel, unreal-engine, question\
**Created:** [September 12, 2019, 2:38am UTC](https://forums.unrealengine.com/t/how-setup-clamp-camera-rotation/455220 "2019-09-12T02:38:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![animerick](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@animerick](https://forums.unrealengine.com/u/animerick)\
**Post date:** [September 12, 2019, 2:38am UTC](https://forums.unrealengine.com/t/how-setup-clamp-camera-rotation/455220/1 "2019-09-12T02:38:17Z")

</div>

Hi everyone, I’ve been trying for days how to limit the pitch for the player camera by using the clamp/float node but have not figure it out for the life of me. I have watch plenty of videos and read many answers on her but there’s two things I can’t figure out. One thing is how and which BP do I use to create a PlayerCameraManager BP and how do I get the variables listed in the detail panel. I would like to use the mouse and the gamepad thumbstick to be able to rotate the camera pitch but with limits. Right now I still have it without limit and I have an example attached. I really appreciate the help in advance everyone. Also, just to mention I have a camera boom attached to the camera if anybody’s wondering.

![287050-without-limit-pitch.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/a/1/7a104be5dcabbe8eecdbf8f95deb01726efa456f.png)

---

<div class="post-metadata">

**Author:** ![1l2Hawk](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/1l2hawk/32/927115_2.png) [@1l2Hawk](https://forums.unrealengine.com/u/1l2Hawk)\
**Post date:** [September 12, 2019, 8:20pm UTC](https://forums.unrealengine.com/t/how-setup-clamp-camera-rotation/455220/2 "2019-09-12T20:20:22Z")

</div>

This is a tricky one … The input values here are incrementally added [-1 to 1] over time. So it’s not working like “hey, the stick is up 45 degrees, so look down exactly 45 degrees”. It’s more like “wherever you are right now, keeping looking down MORE until I say stop”. So what I would suggest is feeding the “Add Controller Pitch Input” node a “Select Float” where the green Axis Value goes into A, and B is set to zero - the output pin goes into Val. Then on the red pin (for Select A) you’d want to test to see if the Axis Value is positive AND the camera pitch has not yet exceeded your threshold in one direction (OR vice versa, axis is negative AND you haven’t gone too far the other way). This will allow the input to be passed thru across the range of angles you want, but will start feeding zeros as input the instant you have gone too far which will prevent pitching beyond your range. Hope that makes sense.

---

<div class="post-metadata">

**Author:** ![animerick](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@animerick](https://forums.unrealengine.com/u/animerick)\
**Post date:** [September 12, 2019, 11:31pm UTC](https://forums.unrealengine.com/t/how-setup-clamp-camera-rotation/455220/3 "2019-09-12T23:31:00Z")

</div>

Hey 1|2 Hawk, thanks for your answer, I appreciate it. I think I got it, I’m going to try it out as you said and see how it goes. Thanks again.

---

<div class="post-metadata">

**Author:** ![animerick](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@animerick](https://forums.unrealengine.com/u/animerick)\
**Post date:** [September 20, 2019, 6:05pm UTC](https://forums.unrealengine.com/t/how-setup-clamp-camera-rotation/455220/4 "2019-09-20T18:05:38Z")

</div>

Hey again 1|2, is there anyway you can provide a sample bp for reference? I tried but could not get it at all. Thanks again.

---

<div class="post-metadata">

**Author:** ![RealGAMEBR0VIP1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RealGAMEBR0VIP1](https://forums.unrealengine.com/u/RealGAMEBR0VIP1)\
**Post date:** [December 7, 2022, 5:10am UTC](https://forums.unrealengine.com/t/how-setup-clamp-camera-rotation/455220/5 "2022-12-07T05:10:20Z")

</div>

get camera get world rotation break rotation struct pin by right clicking the output on the get world rotation, take the rot if greater or equal to “Not Bool” whatever your desired rotation to clamp, then feed it into a “select Float” if select float is not greater than the desired rot then it will “Pick A” if it is it will not “Pick A”. feed result to the add pitch or wherever. Hope this helps. GAMEBR0VIP#2462 on Discord.

---

<div class="post-metadata">

**Author:** ![animerick](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@animerick](https://forums.unrealengine.com/u/animerick)\
**Post date:** [July 3, 2025, 1:44am UTC](https://forums.unrealengine.com/t/how-setup-clamp-camera-rotation/455220/7 "2025-07-03T01:44:09Z")

</div>

Hey man, sorry I never got to thank you for your help. I don’t know how I missed this for so long. Thank you again for the help.
