Cinemachine Confiner 3D doesn't seem to confine a perspective camera with group framing

Hi,

In my game I want to confine a vcam using Cinemachine Confiner 3D. The cam itself is set to perspective and it uses Group Framing. As I understand it, the confiner should confine the position of the camera itself (as opposed to keeping the screen in bounds like you can do in Confiner 2D). This doesn’t seem to work though and I can’t figure out what I’m doing wrong. The camera and vcam leave the bounding box all the time.

The size of the bounding box does not change during runtime. The Targets in the Cinemachine Target Group do change however, as players get spawned and during runtime get added to the list of Targets. The scene only has one cam and one vcam.

Anybody got any ideas? I’m using Cinemachine 3.1. Here are some images to clarify my situation.



image
image

Thanks for your time!

Cheers,
Jonathan

Ok, after some more fiddling about the culprit seems to have been the Cinemachine Group Framing component. It doesn’t seem to register bounding boxes at all. I hadn’t read this in any documentation. The fix is using a simple Position Composer instead which will follow the Group Target.