MultiTranslation

Inherits Translation

This Translation type combines multiple translations that are applied one after the other.

Members

Name

Documentation

Type

Description

Optional

Translations

The list of translations that are applied one after the other

Table

Table parameters

No

Inherited members from Translation

Name

Documentation

Type

Description

Optional

Type

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

String

Must name a valid Translation type

No

TimeFrame

The time frame in which this Translation is applied. If the in-game time is outside this range, no translation will be applied.

Table

TimeFrame

Yes

Table parameters for Translations

The list of translations that are applied one after the other

  • Optional: No

Name

Documentation

Type

Description

Optional

*

Table

Translation

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
27asset.onInitialize(function()
28  openspace.addSceneGraphNode(Node)
29end)
30
31asset.onDeinitialize(function()
32  openspace.removeSceneGraphNode(Node)
33end)