CM Collider: Move camera only if colliding.

Hello,

Would it be possible to add feature to CM Collider component which would cause camera moving only if it is inside some collider, but not if camera target is just obscured from the view? I mean, if I for example rotate orbiting camera around character and camera goes behind building it would not jumps forward but continues to orbit, even if character is temporary not visible.

Camera would only avoid entering inside collider (insides of game object), moving in front of that game object.

When using orbiting camera, zoomed a bit from the target, in areas with more game objects around, like towns, camera is jumping forward/backward like crazy and it’s quite nauseating.

Thank you for considerating it. Or maybe I’m missing some existing feature how to achieve this?

Michal

There are some settings on the CinemachineCollider that can mitigate this jumping around. Have a look at Smoothing Time and Minimum Occlusion Time.

Hi Gregory, thanks for those suggestions.

I tried it and it for sure makes camera less jumpy. But it still avoids ostacles, only with some delay.
Also there is one unpleasant side effect when camera goes briefly below terrain or inside game object.

I already removed some layers from collisions, but it’s also not ideal to allow camera going inside some monster for example. But it feels to be the lesser of two evils.

I made a short video for demonstration. Please consider this feature (move camera in front of the object only if it would be inside it otherwise). That would be real life changer for these game scenarios.

https://www.youtube.com/watch?v=pChNUY6AgeU

This feature now exists in CM 3.1.0 (still unpublished as of this writing). It’s called CinemachineDecollider.