private void RotateObjectAroundCustomAxis() { CustomAxisMouseRotationSettings customAxisRotationSettings = _mouseRotationSettings.CustomAxisRotationSettings; float rotationAmountInDegrees = MouseCursor.Instance.OffsetSinceLastMouseMove.x * customAxisRotationSettings.MouseSensitivity; RotateObjectAroundAxis(_customRotationAxis, rotationAmountInDegrees); }
public CustomAxisMouseRotationSettingsView(CustomAxisMouseRotationSettings settings) { _settings = settings; ToggleVisibilityBeforeRender = true; VisibilityToggleLabel = "Custom Axis Settings"; IndentContent = true; }