Cinemachince does not follow the object that is set to follow

I’m having a really weird problem I don’t undarstand why it keeps happening.

After installing and adding cinemanchine and following eveything in the course Simple Driving lesson Camera Follow the camera isnt following the object it set to follow.

What is happening instead it locks the main camera and it follows the object insted, completely ignoring the virtual camera. It’s like the main camera got hijacked and it completely ignores the cinemachine in the scene even though it has a cinemachine brain.

While playing the scene the virtual camera is following the object but in the game screen I can only see the main camera that is fixed to the gaem object

I couldnt find and suggestion online and I tried to create the project again but it still happened, What should I do?

Attached picture of the complete project with the virtual camera in the inspector and the regular camera inspector

So if I understand this right you’ve got 2 CinemachineVirtualCamera’s in your scene.
I think that’s where it’s going wrong because you only need 1 CinemachineVirtualCamera’s and 1 CinemachineBrain. Put the brain on the main camera and the VirtualCamera on the CM vmcam1 object.
And maybe make the CM vmcam1 object a child of the car object you’re using it with.

I hope that this helps :slight_smile:

As @Thimoca points out, the Main Camera has a Virtual Camera in addition to the CinemachineBrain

That camera is pre-empting the virtual camera following the player.
If you remove that camera, things should be right as rain.

Fixed, Thankes everyone :slight_smile:

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms