コード例 #1
0
        private void RotateObjectAroundCustomAxis()
        {
            CustomAxisMouseRotationSettings customAxisRotationSettings = _mouseRotationSettings.CustomAxisRotationSettings;
            float rotationAmountInDegrees = MouseCursor.Instance.OffsetSinceLastMouseMove.x * customAxisRotationSettings.MouseSensitivity;

            RotateObjectAroundAxis(_customRotationAxis, rotationAmountInDegrees);
        }
コード例 #2
0
        public CustomAxisMouseRotationSettingsView(CustomAxisMouseRotationSettings settings)
        {
            _settings = settings;

            ToggleVisibilityBeforeRender = true;
            VisibilityToggleLabel        = "Custom Axis Settings";
            IndentContent = true;
        }