Enable the possibility to switch between coordinate systems (with the Sun in the center vs Pluto in the center)

This commit is contained in:
Alexander Bock
2015-02-19 19:13:55 +01:00
parent 423d778480
commit 5eb5a9a479
7 changed files with 88 additions and 10 deletions

View File

@@ -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)")