StaticTranslation

Inherits Translation

Members

Name

Documentation

Type

Description

Optional

Position

This value is used as a static offset (in meters) that is applied to the scene graph node that this transformation is attached to relative to its parent.

Vector3<double>

Value of type ‘Vector3

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

Asset Examples

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.

 1local Node = {
 2  Identifier = "StaticTranslation_Example",
 3  Transform = {
 4    Translation = {
 5      Type = "StaticTranslation",
 6      Position = { 0.0, 50.0, -10.0 }
 7    }
 8  },
 9  Renderable = {
10    Type = "RenderableCartesianAxes"
11  },
12  GUI = {
13    Name = "StaticTranslation - Basic",
14    Path = "/Examples"
15  }
16}
17
18asset.onInitialize(function()
19  openspace.addSceneGraphNode(Node)
20end)
21
22asset.onDeinitialize(function()
23  openspace.removeSceneGraphNode(Node)
24end)