Add example for StaticTranslation (#3385)

This commit is contained in:
Alexander Bock
2024-08-21 10:33:59 +02:00
committed by GitHub
parent 1fa4b3fd37
commit a138be3f92

View File

@@ -0,0 +1,29 @@
-- Basic
-- This asset creates a set of coordinate axes that are offset from their original
-- position by a fixed and static amount. In this specific example, the axes are offset
-- by 50 meters along the y-axis and 10 meters along the negative z-axis.
local Node = {
Identifier = "StaticTranslation_Example",
Transform = {
Translation = {
Type = "StaticTranslation",
Position = { 0.0, 50.0, -10.0 }
}
},
Renderable = {
Type = "RenderableCartesianAxes"
},
GUI = {
Name = "StaticTranslation - Basic",
Path = "/Examples"
}
}
asset.onInitialize(function()
openspace.addSceneGraphNode(Node)
end)
asset.onDeinitialize(function()
openspace.removeSceneGraphNode(Node)
end)