MultiTranslation
Inherits Translation
Combines multiple translations that are applied one after the other.
Members
Name |
Documentation |
Type |
Description |
Optional |
|---|---|---|---|---|
|
The list of translations that are applied one after the other. |
|
No |
|
|
The type of translation that is described in this element. The available types of translations depend on the configuration of the application and can be written to disk on application startup into the FactoryDocumentation. |
|
Must name a valid Translation type |
No |
|
The time frame in which this |
|
Yes |
Inherited members from Translation
Name |
Documentation |
Type |
Description |
Optional |
|---|---|---|---|---|
|
The type of translation that is described in this element. The available types of translations depend on the configuration of the application and can be written to disk on application startup into the FactoryDocumentation. |
|
Must name a valid Translation type |
No |
|
The time frame in which this |
|
Yes |
Table parameters for Translations
The list of translations that are applied one after the other.
Optional: No
Name |
Documentation |
Type |
Description |
Optional |
|---|---|---|---|---|
|
|
Yes |
Asset Examples
Basic
This asset creates a set of coordinate axes that are offset from their original position by applying multiple individual translations.
1local Node = {
2 Identifier = "MultiTranslation_Example",
3 Transform = {
4 Translation = {
5 Type = "MultiTranslation",
6 Translations = {
7 {
8 Type = "StaticTranslation",
9 Position = { 0.0, 50.0, -10.0 }
10 },
11 {
12 Type = "StaticTranslation",
13 Position = { -25.0, 0.0, -1.0 }
14 }
15 }
16 }
17 },
18 Renderable = {
19 Type = "RenderableCartesianAxes"
20 },
21 GUI = {
22 Name = "MultiTranslation - Basic",
23 Path = "/Examples"
24 }
25}
26
27
28asset.onInitialize(function()
29 openspace.addSceneGraphNode(Node)
30end)
31
32asset.onDeinitialize(function()
33 openspace.removeSceneGraphNode(Node)
34end)