- Home /
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
There were a lot of questions for this topic. Why do not you try searching for it.
Answer by Xerofa · Aug 28, 2017 at 10:48 AM
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.
Your answer
Follow this Question
Related Questions
How to Make the SmoothFollow Script Follow Faster? 1 Answer
Smooth Follow with Pivotal and Cam Offset 0 Answers
How to enable a childs camera 5 Answers
Smooth dizzy camera shake. 0 Answers
Smooth Follow Problem 1 Answer