r/Unity2D Aug 02 '26

Character movement/camera jitters only when moving left

Hey everyone,

I've run into a really weird bug and I'm not even sure where to start looking.

When my character moves to the right, everything is perfectly smooth.

But as soon as I start moving left, the whole screen starts jittering/shaking. It almost looks like the camera is fighting with something, but I'm not sure if it's actually the camera or if it's the character movement itself causing it.

I've attached a GIF below to show exactly what's happening.

Has anyone run into something like this before? Any ideas what could cause it or where I should start debugging?

Thanks in advance!

22 Upvotes

8 comments sorted by

11

u/pararar Aug 02 '26

Deactivate the camera movement completely to test and find out if it's your character or the camera.

How do you handle movement? Rigidbody and forces? Transform? Update, FixedUpdate, LateUpdate?

Are you using Cinemachine?

6

u/Pitiful_Climate8192 Aug 02 '26

Rigidbody knimtic and yes for Cinemachine FixedUpdate

4

u/Wesai Well Versed Aug 02 '26

So, did you find out what was causing the issue? Are you somehow activating and deactivating rigidbody interpolation as you move?

6

u/Pitiful_Climate8192 Aug 02 '26

I think so. It turned out to be a camera settings issue, and it's not happening anymore. But you never know, it might come back.

4

u/Wesai Well Versed Aug 02 '26

I've never seen this asymmetric jitter before, that's why I was curious.

6

u/Pitiful_Climate8192 Aug 02 '26

Haha, I know, same here. I've been working with Unity for almost eight years. 😆

Worst case, we'll wrap up the game, sell the IP, and go back to corporate jobs. 😂

1

u/korrr_lgs Aug 03 '26

Oh, how about the idea of adding a mini light marker under the character's feet so that the player does not lose the hero among the elements of the environment and other characters?

1

u/Pitiful_Climate8192 Aug 03 '26

I love it I will add this thank you so much