# Rolling the camera's view smoothly...

**URL:** <https://forums.unrealengine.com/t/rolling-the-cameras-view-smoothly/327787>\
**Category:** Cinematics & Media\
**Tags:** tilt, unreal-engine, question\
**Created:** [August 5, 2015, 7:44pm UTC](https://forums.unrealengine.com/t/rolling-the-cameras-view-smoothly/327787 "2015-08-05T19:44:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![PFG\_Icarus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PFG\_Icarus](https://forums.unrealengine.com/u/PFG_Icarus)\
**Post date:** [August 5, 2015, 7:44pm UTC](https://forums.unrealengine.com/t/rolling-the-cameras-view-smoothly/327787/1 "2015-08-05T19:44:21Z")

</div>

I’d like to know how I can get a camera component to rotate on the X axis smoothly when my player leans to the left or to the right. Seen below, I achieved this effect, but in a **very inorganic manor** that just snaps the player’s view to the location and rotation desired.

 ![52962-snapleaning.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/7/4/97419f57643983fb52e1ef019fde599293b32002.png)

With my new script, seen below, I believe that I am actually rotating the camera component based on what is written in the blueprint, but the angle of roll does not change in-game. I tried to test rolling the camera by physically turning the camera in the viewport editor (on the X axis), and although the component was rotated, my player’s view did not change. The player’s view remained parallel with they global XZ plane.

 ![52961-leanleftbp-noviewrotation.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/d/0/0d09bd1a70c19ef20bdc70ec86362c9fdb9e1c0e.png)

Is there anything I can do to rotate the player’s view as I rotate the camera component? Is there another work around other than the script I have written to enable smooth camera rolling? Thank you in advance!

---

<div class="post-metadata">

**Author:** ![PFG\_Icarus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PFG\_Icarus](https://forums.unrealengine.com/u/PFG_Icarus)\
**Post date:** [August 5, 2015, 9:13pm UTC](https://forums.unrealengine.com/t/rolling-the-cameras-view-smoothly/327787/2 "2015-08-05T21:13:43Z")

</div>

After the greater part of a day, I solved it! The issue did lie with my camera component. There is one setting that I enabled to get my old mouselook script to work, that, upon disabling, allowed me to rotate the camera on leaning. I can still use the leaning script that was posted in the question without any changes being made.

**Here is my fix:**

![52963-cameracomponentsettings.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/0/b/b0b50d88ba2c7acd657c37ffdc8f6e12b292ce66.png)

_On the camera component, “Use Pawn Control Rotation” should be disabled._

 ![52964-newmouselook.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/0/3/a034fecab3c2ffaeef5e68d3bf8a2cb5f740f8d2.png)

_This needed to be changed in my mouse look script (for only the Y axis)_

My character can now lean around corners smoothly!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2e70cb911](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2e70cb911](https://forums.unrealengine.com/u/anonymous_user_2e70cb911)\
**Post date:** [July 25, 2017, 5:05pm UTC](https://forums.unrealengine.com/t/rolling-the-cameras-view-smoothly/327787/3 "2017-07-25T17:05:37Z")

</div>

Can your character look up and down?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2e70cb911](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2e70cb911](https://forums.unrealengine.com/u/anonymous_user_2e70cb911)\
**Post date:** [July 25, 2017, 5:08pm UTC](https://forums.unrealengine.com/t/rolling-the-cameras-view-smoothly/327787/4 "2017-07-25T17:08:09Z")

</div>

Sorry i see your modification on mouse imput.
