mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-02-16 00:38:54 -06:00
Add asset.filePath to the warning when trying to register an empty list Correctly add HyperionTrail
31 lines
949 B
Plaintext
31 lines
949 B
Plaintext
asset.request('./base')
|
|
|
|
local assetHelper = asset.require('util/asset_helper')
|
|
local sceneHelper = asset.require('util/scene_helper')
|
|
|
|
assetHelper.requireAll(asset, 'scene/solarsystem/missions/juno')
|
|
|
|
|
|
local junoAsset = asset.require('scene/solarsystem/missions/juno/juno')
|
|
|
|
asset.onInitialize(function ()
|
|
openspace.time.setTime("2016-07-01T10:05:00.00")
|
|
|
|
openspace.markInterestingNodes({ "Jupiter", "Juno" })
|
|
|
|
sceneHelper.setDeltaTimeKeys({
|
|
1, 5, 10, 20, 40, 90, 360, 720, 2880, 14400,
|
|
28800, 57600, 115200, 230400, 460800, 921600, 1843200, 3686400, 7372800, 14745600
|
|
})
|
|
|
|
openspace.navigation.setCameraState({
|
|
Anchor = junoAsset.Juno.Identifier,
|
|
Position = { 1837386367.601345, -389860693812.834839, 714830404470.398926 },
|
|
Rotation = { -0.336540, 0.711402, -0.099212, 0.608937 },
|
|
})
|
|
end)
|
|
|
|
asset.onDeinitialize(function ()
|
|
openspace.removeInterestingNodes({ "Jupiter", "Juno" })
|
|
end)
|