Files
OpenSpace/data/assets/examples/scale/timedependentscale/timedependent_speed.asset
Emma Broman 8a42657deb Feature/examples naming (#3305)
* 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
2024-06-13 10:42:00 +02:00

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)