Actor rotates slightly while moving left or right (bug)

**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)

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.

Hi, here is how I added my camera: youtube-video

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

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…

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

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!

1 Like