How to move camera target smoothly?

hi guys,

I can move the camera smoothly using the below code though I’m having trouble smoothing camera target, currently I’m getting all sorts of jittering… any ideas?

void PositionCam(Vector3 newPos, Vector3 lookAtThis){
transform.position = Vector3.SmoothDamp(transform.position, newPos, ref velocity, smoothTime);
transform.LookAt(Vector3.SmoothDamp(transform.position, lookAtThis, ref velocity, smoothTime));
}

Sorry bout the above formatting… the website is doing strange things…

Cheers

https://www.youtube.com/watch?v=MFQhpwc6cKE

You can watch this video on how to make your camera smooth. I watched this and I can recommend it strongly.