Pixel perfect camera jittering on rotation

,

Using a camera to follow the Player object (including rotation). It seems like rotating the camera beyond a certain threshold (about 47 degrees to either side) creates a very noticeable jitter. I have tried adjusting countless settings to no avail.

Any help/suggestions would be greatly appreciated!

Camera stuff is pretty tricky… I hear all the Kool Kids are using Cinemachine from the Unity Package Manager.

There’s even a dedicated forum: Unity Engine - Unity Discussions

If you insist on making your own camera controller, do not fiddle with camera rotation.

The simplest way to do it is to think in terms of two Vector3 points in space: where the camera is LOCATED and where the camera is LOOKING.

private Vector3 WhereMyCameraIsLocated;
private Vector3 WhatMyCameraIsLookingAt;

void LateUpdate()
{
  cam.transform.position = WhereMyCameraIsLocated;
  cam.transform.LookAt( WhatMyCameraIsLookingAt);
}

Then you just need to update the above two points based on your GameObjects, no need to fiddle with rotations. As long as you move those positions smoothly, the camera will be nice and smooth as well, both positionally and rotationally.

1 Like

Will try this and update. In any case, thanks a lot for the suggestion!