# Using the character's head direction as the zero (0°) reference point to limit the camera's left-right rotation within a specific angle range. 

**URL:** <https://forums.unrealengine.com/t/using-the-characters-head-direction-as-the-zero-0-reference-point-to-limit-the-cameras-left-right-rotation-within-a-specific-angle-range/2633545>\
**Category:** Blueprint\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [August 7, 2025, 2:50pm UTC](https://forums.unrealengine.com/t/using-the-characters-head-direction-as-the-zero-0-reference-point-to-limit-the-cameras-left-right-rotation-within-a-specific-angle-range/2633545 "2025-08-07T14:50:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![EmirGuney](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@EmirGuney](https://forums.unrealengine.com/u/EmirGuney)\
**Post date:** [August 7, 2025, 2:50pm UTC](https://forums.unrealengine.com/t/using-the-characters-head-direction-as-the-zero-0-reference-point-to-limit-the-cameras-left-right-rotation-within-a-specific-angle-range/2633545/1 "2025-08-07T14:50:29Z")

</div>

Guys, I attached the third-person camera to the character’s head for realism (to show the body, etc.). I limited the camera rotation using Clamp and Normalize Axis, but now while the character moves freely, the camera stays fixed and only moves within certain angles. I want to make this camera constraint dynamic - it should limit rotation relative to where the character is looking. I’d appreciate any help with this.

---

<div class="post-metadata">

**Author:** ![BRGJuanCruzMK](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/brgjuancruzmk/32/1036548_2.png) [@BRGJuanCruzMK](https://forums.unrealengine.com/u/BRGJuanCruzMK)\
**Post date:** [August 8, 2025, 9:17pm UTC](https://forums.unrealengine.com/t/using-the-characters-head-direction-as-the-zero-0-reference-point-to-limit-the-cameras-left-right-rotation-within-a-specific-angle-range/2633545/2 "2025-08-08T21:17:12Z")

</div>

Hey @EmirGuney how are you?

I’ve been trying to do this on my project and this is the way I did:

1. First, this is my character config  

2. This is my CameraBoom (Spring Arm) config:  

3. You will need a variable to set the Max Yaw, I set it to 45 degrees  

4. Then, you need to implement this code:  

5. The last thing to do is to update in every tick the “center” of our camera in relation with our character’s forward vector:  

And with that you should be fine!

There are some polish to do, but that is the base logic behind what I understand you want to do!

Let me know if this helps you!
