FixedRotation
Inherits Rotation
Members
Name |
Documentation |
Type |
Description |
Optional |
---|---|---|---|---|
|
This is the name of the node that this rotation is attached to, this value is only needed if any of the three axis uses the Object type. In this case, the location of the attached node is required to compute the relative direction. |
|
Value of type ‘String’ |
Yes |
|
This value specifies the direction of the new X axis. If this value is not specified, it will be computed by completing a right handed coordinate system from the Y and Z axis, which must be specified instead. If this value is a string, it is interpreted as the identifier of another scenegraph node. If this value is a 3-vector, it is interpreted as a direction vector |
|
Value of type ‘String’, or Value of type ‘Vector3 |
Yes |
|
If this value is set to ‘true’, and the type is set to ‘Object’, the inverse of the pointing direction is used, causing the object to point away from the referenced object. |
|
Value of type ‘Boolean’ |
Yes |
|
This value determines whether the vector specified is used directly, or whether it is used together with another non-coordinate system completion vector to construct an orthogonal vector instead. |
|
Value of type ‘Boolean’ |
Yes |
|
This value specifies the direction of the new Y axis. If this value is not specified, it will be computed by completing a right handed coordinate system from the X and Z axis, which must be specified instead. If this value is a string, it is interpreted as the identifier of another scenegraph node. If this value is a 3-vector, it is interpreted as a direction vector |
|
Value of type ‘String’, or Value of type ‘Vector3 |
Yes |
|
If this value is set to ‘true’, and the type is set to ‘Object’, the inverse of the pointing direction is used, causing the object to point away from the referenced object. |
|
Value of type ‘Boolean’ |
Yes |
|
This value determines whether the vector specified is used directly, or whether it is used together with another non-coordinate system completion vector to construct an orthogonal vector instead. |
|
Value of type ‘Boolean’ |
Yes |
|
This value specifies the direction of the new Z axis. If this value is not specified, it will be computed by completing a right handed coordinate system from the X and Y axis, which must be specified instead. If this value is a string, it is interpreted as the identifier of another scenegraph node. If this value is a 3-vector, it is interpreted as a direction vector |
|
Value of type ‘String’, or Value of type ‘Vector3 |
Yes |
|
If this value is set to ‘true’, and the type is set to ‘Object’, the inverse of the pointing direction is used, causing the object to point away from the referenced object. |
|
Value of type ‘Boolean’ |
Yes |
|
This value determines whether the vector specified is used directly, or whether it is used together with another non-coordinate system completion vector to construct an orthogonal vector instead. |
|
Value of type ‘Boolean’ |
Yes |
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 |
Asset Examples
1local CarringtonLongitudeToHEEQ180Rotation = {
2 -- This is a rotation matrix to go from Carrington longitude referens frame to HEEQ180
3 -- reference fram. At the reference time, MAS_seq = 0, 2000-07-14T08:33:37.105 the
4 -- Carrington longitude was 309.3 degrees.
5 -- Difference from HEEQ => 360-309.3=50.7
6 -- (or 0-309.3 = -309.3 However this leads to the same rotation matrix in the end)
7 -- Since OpenSpace supports HEEQ180 and not HEEQ, 180 was added or subtracted
8 -- => a1 = -129.3 and a2 = 230.7
9 -- Rotation matrix: (cos a, -sin a, 0)(sin a, cos a, 0)(0, 0, 1) leads to the result.
10 Type = "FixedRotation",
11 XAxis = { -0.63338087262755016203262119192353, -0.77384020972650618518999944537717, 0.0 },
12 YAxis = { 0.77384020972650618518999944537717, -0.63338087262755016203262119192353, 0.0 },
13 ZAxis = { 0.0, 0.0, 1.0 }
14}
15
16asset.export("CarringtonLongitudeToHEEQ180Rotation", CarringtonLongitudeToHEEQ180Rotation)
17
18
19
20asset.meta = {
21 Name = "Carrington Longitude To HEEQ180 Rotation",
22 Description = "Contains a rotation for HEEQ180 to be used by another file",
23 Author = "OpenSpace Team",
24 URL = "http://openspaceproject.com",
25 License = "MIT license"
26}