mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-02-26 14:58:51 -06:00
34 lines
868 B
Plaintext
34 lines
868 B
Plaintext
local assetHelper = asset.require("assethelper")
|
|
asset.require("spice/base")
|
|
|
|
-- Barycenter of the solar system, expressed in the Galactic frame
|
|
local SolarSystemBarycenter = {
|
|
Name = "SolarSystemBarycenter"
|
|
-- No parent; this node is attached to the scene graph root
|
|
}
|
|
|
|
-- Spice frame for the Sun
|
|
local SunIau = {
|
|
Name = "SunIau",
|
|
Parent = SolarSystemBarycenter.Name,
|
|
Transform = {
|
|
Translation = {
|
|
Type = "SpiceTranslation",
|
|
Target = "SUN",
|
|
Observer = "SSB",
|
|
},
|
|
Rotation = {
|
|
Type = "SpiceRotation",
|
|
SourceFrame = "IAU_SUN",
|
|
DestinationFrame = "GALACTIC"
|
|
}
|
|
}
|
|
}
|
|
|
|
assetHelper.registerSceneGraphNodes(asset, {
|
|
SolarSystemBarycenter,
|
|
SunIau
|
|
})
|
|
|
|
asset.export("SolarSystemBarycenter", SolarSystemBarycenter)
|
|
asset.export("SunIau", SunIau) |