# How to smoothly rotate camera in blueprint?

**URL:** <https://forums.unrealengine.com/t/how-to-smoothly-rotate-camera-in-blueprint/408200>\
**Category:** Blueprint\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [October 29, 2017, 12:59am UTC](https://forums.unrealengine.com/t/how-to-smoothly-rotate-camera-in-blueprint/408200 "2017-10-29T00:59:19Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_3b4bf635](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_3b4bf635](https://forums.unrealengine.com/u/anonymous_user_3b4bf635)\
**Post date:** [October 29, 2017, 12:59am UTC](https://forums.unrealengine.com/t/how-to-smoothly-rotate-camera-in-blueprint/408200/1 "2017-10-29T00:59:19Z")

</div>

I’m using a ThirdpersonCharacter with the attached camera on the head, so during the game the visual is first person.  
As a lot of people do, the follow camera has the socket set to head and it’s using pawn control rotation.

![218279-headcamera.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/2/1/921a3908ac8e0f21af2e5d06eeed6bb487ecc6b8.png)

The ThirdPersonCharacter has the controller Yaw set on true.

My goal is to rotate camera behind, it’s like the player want to see what’s going on behind him.  
The blueprint I wrote here works fine, but there is only a problem related to the **smoothness**.  
Now it’s like a brutal teleport and it’s not nice. I just want to emulate the head of a person looking behind, let’s say in 1 second 180 degrees.

 ![218280-camera-rotation-notimeline.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/2/f/42fd4c33b4e37da0f67b56e014ef242386185b7f.png)

So, I’ve tried using a Timeline which is the obvious solution, but nothing changed. Probably there is something wrong in the following blueprint:

 ![218281-camera-rotation.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/5/4/254f44c11c107cc8d41e11b1289d894463ef84f7.png)

So, how can I solve this problem? Are there any suggestions?  
Thank you!

---

<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:** [October 29, 2017, 7:57am UTC](https://forums.unrealengine.com/t/how-to-smoothly-rotate-camera-in-blueprint/408200/2 "2017-10-29T07:57:42Z")

</div>

Timelines work best when combined with _lerp_ nodes, something like that (example, not solution):

 ![218297-capture.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/2/7/f27df9eb70586d99827aee22708bc526c33904a4.png)

> So, I’ve tried using _a Timeline which  
> is the obvious solution_, but […]

I’d disagree with that. Timelines are best used when you need something to happen in X amount of time. But what if the player’s camera is already rotated by 30 degrees because it was collision-avoiding level geometry or was recovering from another _LookBack_ rotation? Timeline would still execute its full duration even though there’s less rotation remaining - it will end up rotating much slower. Admittedly, you can up its playback rate but that’s unnecessarily convoluted.

Consider the following solution instead:

 ![218299-rotation.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/3/a/03a70abf1b1eca48976aa4eeb7f6dda51851d7e3.png)

The only other thing you need to do is to _EnableCameraRotationLag_ on the _Springarm_. This will give you a smooth yet consistent LookBack result.

tip: if you do not want the camera to do a 360 once the player is looking back directly, set the _TargetRotation_ to -179.9 instead. The _RInterpToConstant_ node will then be forced to return in the same direction it arrived from.

Hope it helps.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_3b4bf635](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_3b4bf635](https://forums.unrealengine.com/u/anonymous_user_3b4bf635)\
**Post date:** [October 29, 2017, 11:24am UTC](https://forums.unrealengine.com/t/how-to-smoothly-rotate-camera-in-blueprint/408200/3 "2017-10-29T11:24:08Z")

</div>

Thank you very much for the exhaustive reply.  
I’ve tried your solution: it works, but despite the enabling of the EnableCameraRotationLag in the CameraBoom, the camera rotates without smothness. Am I missing something?  
Moreover, since the beginning of the game the rotation of the camera is not attached at the character anymore; for example if I rotate standing without using wasd directions, I see the face of my character. It’s like _use pawn control rotation_ has been disabled. Is there a way to fix this?  
Finally, it’s unclear to me why this is working because the _self_ should be my character, not the camera like my blueprint used before.

---

<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:** [October 30, 2017, 1:23am UTC](https://forums.unrealengine.com/t/how-to-smoothly-rotate-camera-in-blueprint/408200/4 "2017-10-30T01:23:17Z")

</div>

This was more of a proof of concept rather than a ready-to-go solution. To make it work (better) with the 3rd person template, you’d need to add a couple of elements:

 ![218365-3rdperson.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/b/a/5baaf347e4fab72f102c4f470909398885abf3e2.png)

- 
  - 

[https://i.gyazo.com/a6fe46a84d853922a3d63e084422141d.mp4](https://i.gyazo.com/a6fe46a84d853922a3d63e084422141d.mp4)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_3b4bf635](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_3b4bf635](https://forums.unrealengine.com/u/anonymous_user_3b4bf635)\
**Post date:** [October 31, 2017, 1:00am UTC](https://forums.unrealengine.com/t/how-to-smoothly-rotate-camera-in-blueprint/408200/5 "2017-10-31T01:00:11Z")

</div>

Perfect! It worked. The only difference is that I used the Follow Camera instead of Camera Boom because I attached the camera to my character:

![218473-mycharactercamera.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/b/a/ebab955dc31bccf85fb39b8376a56695cb1a515c.png)

Thank you very much!

---

<div class="post-metadata">

**Author:** ![hazhunt](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hazhunt](https://forums.unrealengine.com/u/hazhunt)\
**Post date:** [March 13, 2018, 2:15am UTC](https://forums.unrealengine.com/t/how-to-smoothly-rotate-camera-in-blueprint/408200/6 "2018-03-13T02:15:13Z")

</div>

Thank you so much I too was trying to use timelines but it wasn’t having it this is a much better solution thank you so much!

---

<div class="post-metadata">

**Author:** ![Voclost](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Voclost](https://forums.unrealengine.com/u/Voclost)\
**Post date:** [April 7, 2018, 11:15am UTC](https://forums.unrealengine.com/t/how-to-smoothly-rotate-camera-in-blueprint/408200/7 "2018-04-07T11:15:35Z")

</div>

Thx a lot mate ! It helped me and it works perfectly
