I searched a lot and I can’t find the answers, I have a Cinemachine camera, my character and a parallax, my parallax moves smoothly in the Scene view so I can conclude that the problem is in the camera . If I remove the cinemachine and just make the camera follows the player, It jitters with it and the issue is “gone” : Imgur: The magic of the Internet
but if I smooth the movement, with Cinemachine or not, the parallax starts flickering because of the camera and the player movement: Imgur: The magic of the Internet
I’ve already tried:
rb2d.MovePosition(rb2d.position + movementVector * speed * Time.smoothDeltaTime); //transform.position += new Vector3(input_x, input_y, 0).normalized * speed * Time.deltaTime; //rb2d.velocity = new Vector2(Mathf.Lerp(0, input_x * speed, 0.8f),Mathf.Lerp(0, input_y * speed, 0.8f)).normalized;
How can I make the camera moves smoothly with the player, and my parallax works fine?