- Home /
Camera Follow but shaking
hey I'm trying to make the camera follow, but the object looks shaking, I've tried it with vector3 smoothdamp, lerp, how can i make camera follow very smooth ??
transform.position = Vector3.SmoothDamp(transform.position, target.position + offset, ref refvec, smoothSpeed);
transform.position = Vector3.Lerp(transform.position, target.position + offset, smoothSpeed);
where are you calling that? camera movement is typically done in LateUpdate().
i trying on lateupdate, update and fixedupdate, look same
Well keep it on LateUpdate for now. How is your character moving?
Answer by MixMan · Jul 29, 2019 at 04:53 PM
Here's what I use:
transform.position = Vector3.SmoothDamp(transform.position, target.position, ref velocity, smoothTime);
In my case velocity = Vector3.zero
smoothTime for me needs to be at least .5f to not be jerky, but YMMV
Your answer
![](https://koobas.hobune.stream/wayback/20220612205707im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Smooth camera shift, Lerp? SmoothShift? 2 Answers
Mouse wheel zoom 1 Answer
why target switching of smooth camera not very smooth ? 0 Answers
Object lerping in same direction as camera jitters 0 Answers