Hi everyone. I was following the 3rd person camera tutorials and everything was going fine up until the very last video. In the last video they go over getting the camera to go back to the position where it was before it was occluded. After following that tutorial, technically it works. But what it does is when it's occluded the camera jitters a lot.

I think it's because after it's occluded it zooms in and then it's not occluded. Then it tries going back out but it occludes again and goes back in. I followed the code exactly like they did in the video (I went through it like 3 times) but they don't have this issue.

Here is a demonstration of what I mean:
http://zippy.gfycat.com/InfamousOpti...enesscrab.webm

Can anyone help?