Cinemachine FreeLook Camera Snapping Issue When Rotating

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
theYonatan
Posts: 3
Joined: Tue Sep 26, 2023 3:25 am

Cinemachine FreeLook Camera Snapping Issue When Rotating

Post 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!
User avatar
Tony Li
Posts: 21679
Joined: Thu Jul 18, 2013 1:27 pm

Re: Cinemachine FreeLook Camera Snapping Issue When Rotating

Post 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.
theYonatan
Posts: 3
Joined: Tue Sep 26, 2023 3:25 am

Re: Cinemachine FreeLook Camera Snapping Issue When Rotating

Post 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
User avatar
Tony Li
Posts: 21679
Joined: Thu Jul 18, 2013 1:27 pm

Re: Cinemachine FreeLook Camera Snapping Issue When Rotating

Post 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.
theYonatan
Posts: 3
Joined: Tue Sep 26, 2023 3:25 am

Re: Cinemachine FreeLook Camera Snapping Issue When Rotating

Post 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!
User avatar
Tony Li
Posts: 21679
Joined: Thu Jul 18, 2013 1:27 pm

Re: Cinemachine FreeLook Camera Snapping Issue When Rotating

Post 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.
Post Reply