Page 1 of 1

Cinemachine FreeLook Camera Snapping Issue When Rotating

Posted: Tue Sep 26, 2023 3:35 am
by theYonatan
Hello everyone,

I am experiencing a rather strange issue with the Cinemachine FreeLook camera in Unity (3D). While rotating the camera, I notice that it usually operates smoothly, as expected. However, I'm encountering a "snapping" issue when the camera approaches specific orientations, and it's breaking the smoothness of the camera movement.

:idea: Setup:
- I have a player object with a "lookat" gameobject.
- a main camera with a cinemachine brain
- a virtual camera with cinemachineFreeLook and cinemachineInputProvider components.
the virtual camera has the player as the Follow, and Lookat object (child player object) for the lookat.

:idea: Example:

For instance, if the camera is aimed significantly to the left of the player and starts to turn towards the forward direction, it suddenly accelerates and snaps into a forward-facing position.

:idea: What I've Tried:

:arrow: I have checked the Rig settings, including Dead Zones and Dumping.
:arrow: I have experimented with various Binding Modes.
:arrow: I have reviewed the input configurations.

None of these have fixed the issue so far, and I am looking for suggestions on what could be causing this snapping effect and how to eliminate it to maintain smooth camera movement.

Thanks in advance for any insights or advice!

Re: Cinemachine FreeLook Camera Snapping Issue When Rotating

Posted: Tue Sep 26, 2023 9:00 am
by Tony Li
Hi,

Does it appear to be related to any Dialogue System activity? If so, we can look into what the Dialogue System might be doing to contribute to the issue.

Otherwise, I suggest posting in Unity's Cinemachine forum where the Cinemachine devs themselves will be much better equipped to provide you with better answers.

Re: Cinemachine FreeLook Camera Snapping Issue When Rotating

Posted: Tue Sep 26, 2023 10:54 am
by theYonatan
hey,
I don't think the dialogue system is affecting the camera rotation of the player.
I also tried asking there as well, no answers yet...

thanks

Re: Cinemachine FreeLook Camera Snapping Issue When Rotating

Posted: Tue Sep 26, 2023 11:05 am
by Tony Li
Are you using Cinemachine 2? It's the current version that's available in the Package Manager window.

There is an upcoming Cinemachine 3 that may fix this issue. However, it's a redesign so back up your project first if you decide to try it.

Re: Cinemachine FreeLook Camera Snapping Issue When Rotating

Posted: Tue Sep 26, 2023 1:34 pm
by theYonatan
I heard it fixes most bugs and works best on Unity 2023.

Is it easy to upgrade dialouge system as well?
I think I will stay with this for now and if any more complicated bugs will occur I will upgrade.

Thank you!

Re: Cinemachine FreeLook Camera Snapping Issue When Rotating

Posted: Tue Sep 26, 2023 1:48 pm
by Tony Li
Hi,

Since Cinemachine 3 isn't released into production yet, the Dialogue System still supports Cinemachine 2, not 3.

Other than that, it's generally easy to update the Dialogue System -- just back up your project, then import the updated version right on top of the existing version.