Is it possible to follow group of targets with the camera?

So I know that there is this FollowCamera where you can attach lockedTarget.
I am wondering it is possible to achieve the effect of grouped locked targets, in the sense that camera will resize according to how close or far are the targets from each other.

Here is the example of what I mean that you can do in Unity through the cinemachine (around 18:14 you can see the effect).
It is called Group Target.

Thanks in advance.

Welcome abroad!

You could manipulate the radius property on the FollowCamera according to the distance between the objects. I threw together a quick example here that follows the midpoint of two objects, and reajusts the radius based on the diagonal of the bounding box that contains those objects: camera follow two objects | Babylon.js Playground (babylonjs.com)