mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-06 19:50:03 -06:00
Add asset.filePath to the warning when trying to register an empty list Correctly add HyperionTrail
23 lines
745 B
Plaintext
23 lines
745 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 show a complete planet
|
|
openspace.time.setTime(openspace.time.advancedTime(now, "-1d"))
|
|
|
|
openspace.markInterestingNodes({ "Earth", "Mars", "Moon", "Sun" })
|
|
|
|
openspace.navigation.setCameraState({
|
|
Anchor = earthAsset.Earth.Identifier,
|
|
Position = { 0, 0, 0 },
|
|
Rotation = { 0.758797, 0.221490, -0.605693, -0.091135 },
|
|
})
|
|
|
|
openspace.globebrowsing.goToGeo(58.5877, 16.1924, 20000000)
|
|
end)
|
|
|
|
asset.onDeinitialize(function ()
|
|
openspace.removeInterestingNodes({ "Earth", "Mars", "Moon", "Sun" })
|
|
end)
|