using System; using UnityEngine; namespace Tracking { public class CameraTracker: CalibratableTracker { public float LeanRotation { get; private set; } protected override string KeyPrefix => "cam"; public KineticLegTracker legTracker; private void Update() { var adjustedRotation = RelativeRotation - legTracker.RelativeRotation; //calculate how much it rotates around z of bicycleTransform LeanRotation = adjustedRotation.y; } } }