Cinemachine camera forward not updating[solved]

Hi,
I recently added Cinemachine into my project and I am getting a side-effect.

When the Cinemachine brain is enabled the cameras Forward, Right and Up vectors are not being updated as the camera moves. This causes my character controller to behave incorrectly.

//camera variables
[SerializeField] Transform Camera;
[SerializeField] CinemachineFreeLook VCamera; ← tried this after first failed to work

//testing the vectors
Debug.Log("VCamera Forward: {VCamera.transform.forward}"); Debug.Log(β€œCamera Forward: {Camera.forward}”);

The resulting output during each frame is the same vector at startup, even as the camera moves about the scene.

Any help would be appreciated.

Thanks,
Chelsey

Figured it out.

The SimpleCameraController script that comes with the LWRP project was holding onto the camera. Removing it from the camera solved my issue.

1 Like

Thank you for sharing this! It just helped me out greatly!