asset.require("spice/base")
local transforms = asset.require("scene/solarsystem/sun/transforms")



local SaturnBarycenter = {
  Identifier = "SaturnBarycenter",
  Parent = transforms.SolarSystemBarycenter.Identifier,
  Transform = {
    Translation = {
      Type = "SpiceTranslation",
      Target = "SATURN BARYCENTER",
      Observer = "SSB"
    }
  },
  GUI = {
    Name = "Saturn Barycenter",
    Path = "/Solar System/Planets/Saturn",
    Hidden = true,
    Description = "Saturn Barycenter position"
  }
}


asset.onInitialize(function()
  openspace.addSceneGraphNode(SaturnBarycenter)
end)

asset.onDeinitialize(function()
  openspace.removeSceneGraphNode(SaturnBarycenter)
end)

asset.export(SaturnBarycenter)



asset.meta = {
  Name = "Saturn Transforms",
  Version = "1.1",
  Description = "Saturn Barycenter transform",
  Author = "OpenSpace Team",
  URL = "http://openspaceproject.com",
  License = "MIT license"
}
