mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-06 03:29:44 -06:00
Enable the possibility to switch between coordinate systems (with the Sun in the center vs Pluto in the center)
This commit is contained in:
@@ -1,10 +1,5 @@
|
||||
|
||||
openspace.clearKeys()
|
||||
|
||||
function setEarthAsOrigin()
|
||||
openspace.setOrigin('Earth')
|
||||
end
|
||||
|
||||
interaction_speed = 2.75
|
||||
|
||||
-- Key Bindings
|
||||
@@ -14,6 +9,10 @@ openspace.bindKey("f3", "openspace.setPerformanceMeasurement(false)")
|
||||
openspace.bindKey("f4", "openspace.takeScreenshot()")
|
||||
openspace.bindKey("f5", "loadKeyBindings()")
|
||||
|
||||
openspace.bindKey("f9", "openspace.changeViewPointToPluto(); openspace.printInfo('Changing Viewpoint to Pluto-in-center');");
|
||||
openspace.bindKey("f10", "openspace.changeViewPointToSun(); openspace.printInfo('Changing Viewpoint to Sun-in-center');");
|
||||
|
||||
|
||||
openspace.bindKey("T", "openspace.distance(-interaction_speed * openspace.dt(), 6.0)")
|
||||
openspace.bindKey("G", "openspace.distance(interaction_speed * openspace.dt(), 6.0)")
|
||||
openspace.bindKey("Y", "openspace.distance(-interaction_speed * openspace.dt(), 10.0)")
|
||||
|
||||
Reference in New Issue
Block a user