mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-06 11:39:49 -06:00
* Update name and path format of examples that follow the new structure * Fix a broken (updated) property name in an example * Make other examples' GUI paths more consistent * Put them all in the Examples folder
32 lines
829 B
Lua
32 lines
829 B
Lua
-- with Speed
|
|
-- This asset creates a SceneGraphNode that only displays coordinate axes, which grow at
|
|
-- a speed of 12 km/s starting on August 8th, 1969 12:00:00. This means that on
|
|
-- that date, the coordinate axes will disappear and, for example, on August 8th, 1969
|
|
-- 23:00:00, the coordinate axes will be 475200 km long.
|
|
|
|
local Node = {
|
|
Identifier = "TimeDependentScale_Example_Speed",
|
|
Transform = {
|
|
Scale = {
|
|
Type = "TimeDependentScale",
|
|
ReferenceDate = "1969 AUG 08 12:00:00",
|
|
Speed = 12000
|
|
}
|
|
},
|
|
Renderable = {
|
|
Type = "RenderableCartesianAxes"
|
|
},
|
|
GUI = {
|
|
Name = "TimeDependentScale - With Speed",
|
|
Path = "/Examples"
|
|
}
|
|
}
|
|
|
|
asset.onInitialize(function()
|
|
openspace.addSceneGraphNode(Node)
|
|
end)
|
|
|
|
asset.onDeinitialize(function()
|
|
openspace.removeSceneGraphNode(Node)
|
|
end)
|