mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-25 13:38:34 -06:00
Corrected SBDB position using SPICE ECLIPJ2000 frame for sun
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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 })
|
||||
|
||||
Reference in New Issue
Block a user