Hello! I have a player that moves left and right controlled by this line of code:
playerRb.velocity = new Vector2(movement * speed * Time.deltaTime, playerRb.velocity.y);
I then have a camera that is following my player with a smooth delay with this line of code:
Vector3 desiredPosition = playerPosition.transform.position + offset;
Vector3 smoothedPosition = Vector3.SmoothDamp(transform.position, desiredPosition, ref velocity, smoothSpeed * Time.smoothDeltaTime);
transform.position = smoothedPosition;
But for some reason I still get this jittery movement:
Other things have a really bad jittery movements too. And my camera movement code is in LateUpdate(). Thank you for your help!