# Actor rotates slightly while moving left or right (bug)

**URL:** <https://forums.unrealengine.com/t/actor-rotates-slightly-while-moving-left-or-right-bug/419750>\
**Category:** Community & Industry Discussion\
**Tags:** actor, bug, unreal-engine, rotate, UE4, question\
**Created:** [March 13, 2018, 8:57pm UTC](https://forums.unrealengine.com/t/actor-rotates-slightly-while-moving-left-or-right-bug/419750 "2018-03-13T20:57:12Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon90795801](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anon90795801](https://forums.unrealengine.com/u/anon90795801)\
**Post date:** [March 13, 2018, 8:57pm UTC](https://forums.unrealengine.com/t/actor-rotates-slightly-while-moving-left-or-right-bug/419750/1 "2018-03-13T20:57:12Z")

</div>

\*\*Version: 4.18.3  
  
 -Blank project but using 2D paper character \*\*

I can move to the left or right perfectly fine but my player rotates slightly to the direction he is moving in (he rotates ca 3 degrees). I’ve attached the camera to my player (the camera is not inside the actor blueprint but in the actual world) and this then creates a lot of shaking to the camera when I move. [Here is a video:] ([- YouTube](https://youtu.be/fYFZvGejw2M))

---

<div class="post-metadata">

**Author:** ![Anhhkk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anhhkk](https://forums.unrealengine.com/u/Anhhkk)\
**Post date:** [March 14, 2018, 1:18am UTC](https://forums.unrealengine.com/t/actor-rotates-slightly-while-moving-left-or-right-bug/419750/2 "2018-03-14T01:18:49Z")

</div>

Hi,

Can you share more info about how are you attaching your camera? And how are you updating the camera?  
I just create the 2D side scroller example, and it works as it should be, I modified it, adding a Camera Artor and  
forcing that actor to follow my character and it work ok too.

Maybe try to not attach your camera directly to your character, as the character rotates 180 when it changes direction it could mess with your camera transform.

---

<div class="post-metadata">

**Author:** ![anon90795801](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anon90795801](https://forums.unrealengine.com/u/anon90795801)\
**Post date:** [March 14, 2018, 2:25pm UTC](https://forums.unrealengine.com/t/actor-rotates-slightly-while-moving-left-or-right-bug/419750/3 "2018-03-14T14:25:29Z")

</div>

Hi, here is how I added my camera: [youtube-video](https://www.youtube.com/watch?v=iwWwPYaz6SU&feature=youtu.be)

And what else could I attach the camera to other than directly to the character?  
Thanks

---

<div class="post-metadata">

**Author:** ![anon90795801](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anon90795801](https://forums.unrealengine.com/u/anon90795801)\
**Post date:** [March 14, 2018, 7:37pm UTC](https://forums.unrealengine.com/t/actor-rotates-slightly-while-moving-left-or-right-bug/419750/4 "2018-03-14T19:37:43Z")

</div>

Managed to “fix” it by just creating a new project and copying almost all the blueprints over to that project. Still don’t know what the problem was though…

---

<div class="post-metadata">

**Author:** ![Anhhkk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anhhkk](https://forums.unrealengine.com/u/Anhhkk)\
**Post date:** [March 15, 2018, 2:41am UTC](https://forums.unrealengine.com/t/actor-rotates-slightly-while-moving-left-or-right-bug/419750/5 "2018-03-15T02:41:02Z")

</div>

It is weird, I just duplicate your copy in my project and the camera flip 180 when the character change its direction. Maybe in your code, you aren’t rotating your character and attaching the camera works as you expected.

Instead of attaching you can:

1. Use a **SpringArmComponent** with a **CameraComponent** and in _Camera Settings_ disable Inherit Yaw
2. Create a follow code in your camera blueprint

 ![233821-camfollow.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/3/f/63f8b9e4b3a736284ed510ad8971667489434914.png)

---

<div class="post-metadata">

**Author:** ![kiiiwi\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kiiiwi\_1](https://forums.unrealengine.com/u/kiiiwi_1)\
**Post date:** [July 26, 2022, 1:43am UTC](https://forums.unrealengine.com/t/actor-rotates-slightly-while-moving-left-or-right-bug/419750/6 "2022-07-26T01:43:34Z")

</div>

Hi everyone,

Might be a little too late, but i faced the very same issue in 5.0.3 while trying out AnimStarterPack and found a very easy solution in my own case. I just went to the character blueprint, right into the Character Movement component, then in Details scrolled down to Character Movement (Rotation Settings) and disabled the Orient Rotation To Movement checkbox. And the character’s laggy rotation while pressing movement keys was no more!

---

<div class="post-metadata">

**Author:** ![MURTSUSA](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MURTSUSA](https://forums.unrealengine.com/u/MURTSUSA)\
**Post date:** [January 26, 2025, 8:39pm UTC](https://forums.unrealengine.com/t/actor-rotates-slightly-while-moving-left-or-right-bug/419750/7 "2025-01-26T20:39:27Z")

</div>

I started UE5 recently and had the same issue in my C++ project. For me it was a problem with "GetCharacterMovement()-\>RotationRate = FRotator(0.0f, -1.0f, 0.0f); ". After setting this to 0,0f on all 3 parameters or changing it to 0, 0, 0 in the Character Blueprint → Movement → Rotation Rate it worked for me.
