You can use the approach used in a chase camera:
I bet you’ll end up using something like this:
camera.position.x = Scalar.Lerp(camera.position.x, target.x, 0.01) // speed
You can use the approach used in a chase camera:
I bet you’ll end up using something like this:
camera.position.x = Scalar.Lerp(camera.position.x, target.x, 0.01) // speed