Simple and quick question: I need to adjust the “shoulder offset” based on the camera angle (basically I want to do that free look camera “rig-curve”). So how do I access the virtual camera shoulder rig properties in a script?
// CinemachineVirtualCamera vcam;
var thirdPersonFollow = vcam.GetCinemachineComponent<Cinemachine3rdPersonFollow>();
thirdPersonFollow.ShoulderOffset = Vector3.zero;
You can also look at the AimingRig sample scene. In it, there is a script called ThirdPersonFollowDistanceModifier, which simulates the FreeLook rig-curve thing by modifying camera distance instead of shoulder offset.