mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-09 21:21:19 -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
28 lines
775 B
Plaintext
28 lines
775 B
Plaintext
local assetHelper = asset.require('util/asset_helper')
|
|
local sceneHelper = asset.require('util/scene_helper')
|
|
local propertyHelper = asset.require('util/property_helper')
|
|
local debugHelper = asset.require('util/debug_helper')
|
|
|
|
-- At this point, a scene needs basic spice data to load.
|
|
asset.require('spice/base')
|
|
|
|
asset.require('util/default_keybindings')
|
|
asset.require('util/default_dashboard')
|
|
asset.require('util/default_joystick')
|
|
|
|
asset.require('util/webgui')
|
|
local spheres = asset.require('examples/spheres')
|
|
|
|
debugHelper.registerCartesianAxes(asset, {
|
|
Parent = "Root",
|
|
Scale = 10
|
|
})
|
|
|
|
asset.onInitialize(function ()
|
|
openspace.navigation.setNavigationState({
|
|
Anchor = "Root",
|
|
Position = { 20, 20, 20 },
|
|
Up = {0, 1, 0},
|
|
})
|
|
end)
|