Corrected SBDB position using SPICE ECLIPJ2000 frame for sun

This commit is contained in:
GPayne
2020-01-14 13:49:13 -07:00
parent 48a65f8b5f
commit 2a99bf02fc
2 changed files with 23 additions and 3 deletions

View File

@@ -34,7 +34,7 @@ local registerSssbGroupObjects = function(containingAsset, filename, sssbFolder,
function sssBodies(title, file, color)
return {
Identifier = title,
Parent = transforms.SolarSystemBarycenter.Identifier,
Parent = transforms.SunECLIPJ2000.Identifier,
Renderable = {
Type = "RenderableSmallBody",
Path = file,

View File

@@ -42,6 +42,26 @@ local SunIAU = {
}
}
local SunECLIPJ2000 = {
Identifier = "SunECLIPJ2000",
Parent = SolarSystemBarycenter.Identifier,
Transform = {
Translation = {
Type = "SpiceTranslation",
Target = "SUN",
Observer = "SSB"
},
Rotation = {
Type = "SpiceRotation",
SourceFrame = "ECLIPJ2000",
DestinationFrame = "GALACTIC"
}
},
GUI = {
Name = "SUN J2000",
Path = "/Solar System/Sun",
Hidden = true
}
}
assetHelper.registerSceneGraphNodesAndExport(asset, { SolarSystemBarycenter, SunIAU })
assetHelper.registerSceneGraphNodesAndExport(asset, { SolarSystemBarycenter, SunIAU, SunECLIPJ2000 })