Has anyone encountered issues with CMs blend orientations, where blending around 180 degrees causes a sudden switch mid-blend (sometimes multiple times)? I’ve tried adjusting most things on the cam but can’t get it to transition smoothly in a single direction. From what I’ve read, it might be related to gimbal lock, but even when blending front-to-back around the same target (the player), Cinemachine keeps flipping from left to right mid-blend. Any ideas on how to fix?
180-degree blends are tricky. This is because CM chooses the shortest path, but both CM cameras (incoming and outgoing) remain live, so if the targets move relative to the cameras, the shortest path can flip mid-blend.
One way to mitigate this is to use the FreezeWhenBlendingOut blend hint. Another way is to deactivate the outgoing camera when the blend starts. Both of those techniques will stop the camera from updating its position during the blend.
This is actually really helpful thank you - I had read a number of your replies on similar topics but I missed this nuance that it was because of the target’s movement causing a flipping of the shortest route. Makes sense and I should be able to work around it now.
Just for completeness I believe this blend hint is new and only for CM3. New version of Cinemachine 3 pre-release 5 available