# Smooth "Use Controller Rotation Yaw" usage for 3rd Person Camera?

**URL:** <https://forums.unrealengine.com/t/smooth-use-controller-rotation-yaw-usage-for-3rd-person-camera/323823>\
**Category:** Cinematics & Media\
**Tags:** aiming, aim, unreal-engine, question\
**Created:** [July 2, 2015, 11:15am UTC](https://forums.unrealengine.com/t/smooth-use-controller-rotation-yaw-usage-for-3rd-person-camera/323823 "2015-07-02T11:15:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_b7c46e9e1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b7c46e9e1](https://forums.unrealengine.com/u/anonymous_user_b7c46e9e1)\
**Post date:** [July 2, 2015, 11:15am UTC](https://forums.unrealengine.com/t/smooth-use-controller-rotation-yaw-usage-for-3rd-person-camera/323823/1 "2015-07-02T11:15:57Z")

</div>

Heyo,

I’m currently trying to figure out how to create an aim system like how games like Dead Space use it.

If you do not press a mouse button, you can rotate the camera freely around your character. If you move, it basically represents “Use Controller Rotation Yaw” as true. The player faces where the camera looks at, the player rotates with the camera.

Same applies, if you press and hold right mouse button, which puts you into Aim Mode.

Now, the basic setup I have, is only:

Right Mouse Button Pressed → Use Controller Rotation Yaw TRUE  
Right Mouse Button Released → Use Controller Rotation Yaw FALSE

Pressing and holding RMB now results in my character rotation to the camera aim instantly and if i release the mouse button, the character rotates back to his movement direction noticeably.

How can I apply the same to the Use Controller Rotation Yaw TRUE state, so that the character won’t “insta-face” into this direction?

Cheers,

---

<div class="post-metadata">

**Author:** ![CarniverousSock\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CarniverousSock\_1](https://forums.unrealengine.com/u/CarniverousSock_1)\
**Post date:** [September 3, 2015, 7:16am UTC](https://forums.unrealengine.com/t/smooth-use-controller-rotation-yaw-usage-for-3rd-person-camera/323823/2 "2015-09-03T07:16:06Z")

</div>

I’m not sure I understand what you’re trying to do. It sounds like you want the player character to face the direction of the camera at all times, aiming or not. This is effectively done by leaving the “Use Controller Rotation Yaw” turned on the entire time.

Are you trying to do something different with the rotation when aiming? Or just the zoom?

---

<div class="post-metadata">

**Author:** ![Nizami\_Nz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nizami\_Nz](https://forums.unrealengine.com/u/Nizami_Nz)\
**Post date:** [July 2, 2019, 9:18am UTC](https://forums.unrealengine.com/t/smooth-use-controller-rotation-yaw-usage-for-3rd-person-camera/323823/3 "2019-07-02T09:18:08Z")

</div>

You need (Set Use control rotation Yaw). When you aim (Set Use control rotation) is ture.

---

<div class="post-metadata">

**Author:** ![Neuxs412](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Neuxs412](https://forums.unrealengine.com/u/Neuxs412)\
**Post date:** [July 2, 2019, 8:57pm UTC](https://forums.unrealengine.com/t/smooth-use-controller-rotation-yaw-usage-for-3rd-person-camera/323823/4 "2019-07-02T20:57:52Z")

</div>

ok, so as i understand it

**default state** is aiming with character forward locked to camera forward

when you \*\* press right click\*\* aiming is stopped and character is allowed to rotate in the direction of the movement while the camera continues to look forward

when you **release right Click** character goes back to aiming mode with the forward locked to the camera forward.

**The Issue:**  
when you exit aiming mode your character rotates around freely turning to face the the direction you are moving in, but when you **RE ENTER** aim mode instead of you character smoothly turning to face in the direction of the camera it snaps to the camera view.

**what i think causes it:**

when you release the right click UseControllerRotation gets set to true immediately snapping your character to the camera view.

**How i think you can fix it**

What I think you want to do is **FIRST** align the character forward vector to the camera forward vector using an interpolate or a lerp **THEN** set UseControllerRotation to true so the character forward vector gets locked to the camera forward vector only **AFTER** they are aligned so no snap is noticeable. I’m sure you can use the DOT product of both vectors to compare when they are similar enough to each other to allow the camera lock. once i get home ill take a look and see if i can build a blueprint example to share here

---

<div class="post-metadata">

**Author:** ![Neuxs412](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Neuxs412](https://forums.unrealengine.com/u/Neuxs412)\
**Post date:** [July 2, 2019, 9:02pm UTC](https://forums.unrealengine.com/t/smooth-use-controller-rotation-yaw-usage-for-3rd-person-camera/323823/5 "2019-07-02T21:02:06Z")

</div>

oops! re read the question an realized that holding right click is what triggers aim mode. the logic is still sound though.

i think… XD
