Camera jerking problem

I am doing a car game.In this the camera in driver position.I am using “Vector3.SmoothDamp”
for camera follow and “Quaternion.Slerp” for camera smooth rotation.But the camera was jerking
when i drive car in city asset.( i.e. Buildings were shaking ).
I just added the camera as child of the car and removed the follow script.But still the camera
was jerking.
Can u please help to solve this problem.

Note:I searched in forum but i didn’t got solution.

Can you post a piece of script responsible for camera movement?

here is the code

void LateUpdate()
    {
       
        transform.position = Vector3.SmoothDamp(transform.position, target.position, ref velocity, smoothTime);

        transform.rotation = Quaternion.Slerp(transform.rotation, target.rotation, 0.1f);

    }

bump

Problem Solved…

It would be nice if you could post the solution, because others may profit from it as well.

Its frame rate problem.I am using three monitor with 6 cameras.So i think high end pc will need.

That doesn’t sound right. I mean, a higher frame rate will no doubt smooth it out and make it less noticeable, but there could well still be something causing small errors.

If the camera is to be in the driver’s position I’d personally put its transform under the car’s transform. Then I’d add momentum motion to that based on the change in world velocity, if that’s what you’re trying to achieve with the SmoothDamp(…).

can u please tell me, how to add momentum motion to the camera.

bump