void UpdateAxes() { if (!lockYaw) { yawAngle = 30 * Mathf.Sin(Mathf.PI * 2 * yawFreq * yawTime); yawTime += Time.deltaTime; } bladeSpeed = BraceletUtility.Remap(speedKnob.KnobPercent(), 0, 1, minSpeed, maxSpeed); pitchAngle = BraceletUtility.Remap(pitchKnob.KnobPercent(), 0, 1, minAngle, maxAngle); pitchAxis.localEulerAngles = new Vector3(-pitchAngle, 0, 0); yawAxis.localEulerAngles = new Vector3(0, yawAngle, 0); bladeAxis.localEulerAngles += new Vector3(0, 0, bladeSpeed * speedGain) * Time.deltaTime; }