mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-07 04:00:37 -06:00
* Replace setCameraState with setNavigationState + equivalents * Add documentation and verification of NavigationState-related interfaces * Documentation and verification fixes * Change reference frame behavior * Scene fixes * Replace earthrise recording with navigation state and time
32 lines
950 B
Plaintext
32 lines
950 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.setNavigationState({
|
|
Anchor = junoAsset.Juno.Identifier,
|
|
Position = { 1.243398E8, 7.176068E7, -1.519733E7 },
|
|
ReferenceFrame = "Root",
|
|
Up = { -0.377400E0, 0.764573E0, 0.522492E0 },
|
|
})
|
|
end)
|
|
|
|
asset.onDeinitialize(function ()
|
|
openspace.removeInterestingNodes({ "Jupiter", "Juno" })
|
|
end)
|