Hello,
I have 3rd Person freelook camera for my player. I watched various tutorials and set the camera up in a way that seemed both efficient and natural. But when I imported my camera into a project with uneven terrain (created with Unity’s standard tools), then the camera often clips behind / underneath the terrain when standing on a (shallow) slope; it appears that it doesn’t recognise the terrain as obstacle.
I am new to Unity and hope I’m not overlooking anything obvious. My player (look at & follow target) is spawning at Y: -0.7, due to some scaling on the capsule mesh and collider, maybe this could be related to the issue?
I am using cinemachine 2.7.1; attached are screenshots of the issue and my settings (after setting them all to their extremes to try and avoid the clipping).
Thanks for your help in advance!
Edit:
Solved… I feel a bit stupid now, considering how much time I have wasted trying out lots of things.
What happened: Initially “Minimum Occlusion Time” and “Damping When Occluded” were not 0, causing the clipping. As part of finding out the cause for this, at some point, I tried to put the terrain on its own layer. I then forgot to put it back to “Default” and so even when I put all the parameters of the collidered to “0”, it still clipped… obviously.
Also, is there a way to delete this thread as it turned out to be quite unnecessary?

