MultiRotation
Inherits Rotation
This Rotation type combines multiple individual rotations that are applied one after the other. The rotations are applied in the order in which they are specified in the Rotations
key.
Members
Name |
Documentation |
Type |
Description |
Optional |
---|---|---|---|---|
|
The list of rotations that are applied one after the other |
|
No |
Inherited members from Rotation
Name |
Documentation |
Type |
Description |
Optional |
---|---|---|---|---|
|
The type of the rotation that is described in this element. The available types of rotations depend on the configuration of the application and can be written to disk on application startup into the FactoryDocumentation |
|
Must name a valid Rotation type |
No |
|
The time frame in which this |
|
Yes |
Table parameters for Rotations
The list of rotations that are applied one after the other
Optional: No
Name |
Documentation |
Type |
Description |
Optional |
---|---|---|---|---|
|
|
Yes |
Asset Examples
Basic
This asset creates a scene graph node that only displays coordinate axes. The rotation of the coordinate axes are determined by a combination of individual rotations. The rotations are applied in the order in which they are specified
1local Node = {
2 Identifier = "MultiRotation_Example",
3 Transform = {
4 Rotation = {
5 Type = "MultiRotation",
6 Rotations = {
7 {
8 Type = "StaticRotation",
9 Rotation = { math.pi, 0.0, 0.0 }
10 },
11 {
12 Type = "StaticRotation",
13 Rotation = { 0.0, 0.0, math.pi }
14 }
15 }
16 }
17 },
18 Renderable = {
19 Type = "RenderableCartesianAxes"
20 },
21 GUI = {
22 Name = "MultiRotation - Basic",
23 Path = "/Examples"
24 }
25}
26
27asset.onInitialize(function()
28 openspace.addSceneGraphNode(Node)
29end)
30
31asset.onDeinitialize(function()
32 openspace.removeSceneGraphNode(Node)
33end)