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

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

asset.onInitialize(function()
  openspace.addSceneGraphNode(MercuryBarycenter)
end)
  
asset.onDeinitialize(function()
  openspace.removeSceneGraphNode(MercuryBarycenter)
end)
  
asset.export(MercuryBarycenter)



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