Hey everyone ! I wanted to reset the camera view of the Cinemachine Virtual Camera. Basically, I am using the Starter Assets Third Person Controller, which has a third person follow virtual camera. The Body is set to ‘3rd person follow’ and the aim is set to ‘Do Nothing’. I have gone through various threads on resetting the camera view and tried the below but nothing is resetting the camera to its initial position or rotation.
ThirdPersonFollow is a rig that determines the camera position based on the Follow Target. It also sets the rotation of the camera to the rotation of the Follow target.
There are several ways to modify the rotation:
You can reset the Follow target’s rotation (in your case PlayerCameraRoot’s rotation).
You can add an Aim behaviour and a LookAt target. The value calculated by this Aim behaviour will overwrite the value set by ThirdPersonFollow.
You can write a CinemachineExtension that modifies the rotation of the camera. For an example, see Cinemachine3rdPersonAim.
I’m exactly the same.
Crazy there is no simple way to do this i.e. update the camera when the player has respawned to the start etc.
When I respawn the player has the correct position and rotation, but the camera has not updated to the correct rotation, surely there should be a much simpler way to update the position of the camera?
I have seen the post above from a Unity Dev, so reset the follow? Set it to null and back to the playerCameraRoot?