I had this running issue for a while and just recently I came up with a potential sollution to fix it. It's facinating how complex issue can be solved in most basic way.
This video is about solving a problem with freelook cinemachine camera collider addon. When the camera radius is above 0, the camera jitters on the edges of the game objects. If the radius is on 0, the camera will not jitter but it will clip into the walls and floor.
In short:
1) Create empty object and add box collider
2) Scale that col box a bit over the scale of game asset (+0.25 in all directions).
3) Create new layer to store only ColObj.
4) place that ColObj in the Asset as child (Easy to handle with prefabed game objects, set once, and the rest will set up automaticly)
5) Go to Edit - Project Settings - Physics and untick all layers that collide with ColObj Layer.
6) In camera collider addon, set the Collide Against to ColObj layer only.
This setup allows the camera to stay on its angle and it won't clip into the floor or walls.
I tried messing with most settings and this is the only sollution that worked so far.
I would recommend to have the colliders stick out at least 0.25 on ground and ceiling; 0.15 on walls.
Times:
Timestamps:
00:00 Introduction.
01:12 Sollution.
03:27 Result.
04:22 Outro.
#unity #cinemachine #fix