# Clamp character rotation, from cameras forward vector

**URL:** <https://forums.unrealengine.com/t/clamp-character-rotation-from-cameras-forward-vector/643835>\
**Category:** Blueprint\
**Tags:** unreal-engine, UE5-0, Blueprint, question\
**Created:** [September 7, 2022, 6:52pm UTC](https://forums.unrealengine.com/t/clamp-character-rotation-from-cameras-forward-vector/643835 "2022-09-07T18:52:04Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [September 9, 2022, 9:32am UTC](https://forums.unrealengine.com/t/clamp-character-rotation-from-cameras-forward-vector/643835/7 "2022-09-09T09:32:20Z")

</div>

Have a look at my post here:

> [@Restrict Pawn's Rotation](https://forums.unrealengine.com/t/restrict-pawns-rotation/487856/3):
>
> Have a look at this one: Script to copy: [[Image from Gyazo]](https://gyazo.com/07facc8d174c94dd6103a641878c6929) Essentially, Dot Product is an answer to most angular issues. The yellow arrow indicates the turret’s front. Oh, and a TL is probably not the way to go about it unless you’re after something truly specific / unique / inflexible. Does not mesh well with target tracking in my head.

There’s an example of how to clamp an angle depending on the facing direction.

---

_[View the full topic](https://forums.unrealengine.com/t/clamp-character-rotation-from-cameras-forward-vector/643835)._
