Cinemachine Virtual Camera follow target overlaps target

I create a simple capsule with an empty follow target child. Then I make a virtual camera with 3rd person follow and assign the follow target to the Follow property in the inspector, the camera jumps to overlap the target instead of following at a distance.

I’ve looked at some of the sample scenes and it works correctly, but making my own scene it doesn’t work. As far as I remember, it used to work. So it seems like something happened.

Here’s a screen recording:

The camera is trying to look at the center of the capsule, and it thinks that the capsule itself is occluding the target. You need to exclude the capsule’s layer from the collision filter in the vcam, or tag it and set the vcam to ignore that tag

6987053--824900--upload_2021-3-29_14-46-41.png

Thanks, that fixed it.

Was this changed recently? I have an example project from this video where it works without setting Ignore Tag.

https://www.youtube.com/watch?v=537B1kJp9YQ

It’s possible that in the example the target was on a layer other than “default”

I checked and the target is on the default layer. I even made my own capsule and target in the example project to test, and it works as expected. The project is using an older version of Cinemachine than I’m using, thought.