Move friction properties into common subowner

This commit is contained in:
Alexander Bock
2017-07-29 01:33:22 -04:00
parent e0dc60f218
commit ad5ca816a9
4 changed files with 48 additions and 42 deletions

View File

@@ -52,18 +52,18 @@ helper.setCommonKeys = function()
openspace.bindKey(
"f",
helper.property.invert('NavigationHandler.OrbitalNavigator.RotationalFriction'),
helper.property.invert('NavigationHandler.OrbitalNavigator.Friction.RotationalFriction'),
"Toggles the rotational friction of the camera. If it is disabled, the camera rotates around the focus object indefinitely."
)
openspace.bindKey(
"Shift+f",
helper.property.invert('NavigationHandler.OrbitalNavigator.ZoomFriction'),
helper.property.invert('NavigationHandler.OrbitalNavigator.Friction.ZoomFriction'),
"Toggles the zoom friction of the camera. If it is disabled, the camera rises up from or closes in towards the focus object indefinitely."
)
openspace.bindKey(
"Ctrl+f",
helper.property.invert('NavigationHandler.OrbitalNavigator.RollFriction'),
helper.property.invert('NavigationHandler.OrbitalNavigator.Friction.RollFriction'),
"Toggles the roll friction of the camera. If it is disabled, the camera rolls around its own axis indefinitely."
)