Camera jitter when rotating player
I have read countless posts on this topic but i still cannot resolve my issue.
When i rotate my player, the player itself turns smoothly but the background does not, there is a noticeable jitter on background objects.
I have a rigidbody character which is controlled by joystick input, the inputs are received in Update(), the player movement including rotation is done in FixedUpdate().
.
Cinemachine is used for the camera. The MainCamera uses Update Method = Fixed Update and Blend Method = Fixed Update. The player will jitter if i do not set them like this.
The VirtualCamera has a Follow and LookAt targets of game object "Follow Target". This game object is a child of the main player.
.
I created a new scene and put the bare minimum in it to reproduce the issue, video here.
.
Notes:
I put the movements logic in FixedUpdate() as we are dealing with Rigidbody and physics.
The Rigidbody uses Interpolate.
Does the "Follow Target" being a child of the Player object (which has the Rigidbody component) a potential cause of the issue? If so, how can i get the camera to follow the player smoothly as well as have the background smooth. The player is based on FixedUpdate but I think the camera needs to be based on Update or LateUpdate. But i can't have both???
Your answer
Follow this Question
Related Questions
Stuttering with moving Rigidbody 1 Answer
Camera always facing players direction 1 Answer
Swipe Power Limit in a ball 0 Answers