public void Yaw(float degrees) { Vector3 yAxis; if (isYawFixed) { // Rotate around fixed yaw axis yAxis = yawFixedAxis; } else { // Rotate around local Y axis yAxis = orientation * Vector3.UnitY; } Rotate(yAxis, degrees); InvalidateView(); }