mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-07 12:10:52 -06:00
18 lines
586 B
Plaintext
18 lines
586 B
Plaintext
asset.require('./base')
|
|
|
|
local earthAsset = asset.require('scene/solarsystem/planets/earth/earth')
|
|
|
|
asset.onInitialize(function ()
|
|
local now = openspace.time.currentWallTime()
|
|
-- Jump back one day to be able to show complete weather data on Earth.
|
|
openspace.time.setTime(openspace.time.advancedTime(now, "-1d"))
|
|
|
|
openspace.globebrowsing.goToGeo("Earth", 58.5877, 16.1924, 20000000)
|
|
|
|
openspace.markInterestingNodes({ "Earth", "Mars", "Moon", "Sun"})
|
|
end)
|
|
|
|
asset.onDeinitialize(function ()
|
|
openspace.removeInterestingNodes({ "Earth", "Mars", "Moon", "Sun" })
|
|
end)
|