How to setup a Third Person Camera

I’m trying to do a third person camera that follows my character from behind, something like the first part of this video. I create my character (just a capsule with a cube to mark the forward direction, for now), I added a blank object as a child of the character that can be targeted by the camera, added the Virtual Camera to the scene and dragged the target object to the “Follow” field in the inspector. At this point, instead of snapping to the back of my character like the video, the camera gets stuck inside the character, and if I tweak the parameters of the virtual camera it has kind of “non linear” behavior. For example, if I move the “camera side” slider, the camera jumps around along the axis instead of moving linearly. I tried to delete the project and start again, but I’m getting the exact same behavior so I guess I’m doing something wrong, but I really can’t understand what. Let me know if some photo/video of this behavior is needed!

Cinemachine version: 2.7.3
Unity version: 2020.3.1f1 Personal

Probably the camera is colliding with the player shape itself. Try setting this:

6997787--826742--upload_2021-4-1_12-24-24.png

Normally, you should put the player’s geometry on a separate layer or, failing that, tag all of its geometry and then put that tag in the “Ignore Tag” field. Then you can enable the collision resolution again.

1 Like

thanks, now it’s working!