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



local MarsBarycenter = {
  Identifier = "MarsBarycenter",
  Parent = transforms.SolarSystemBarycenter.Identifier,
  Transform = {
    Translation = {
      Type = "SpiceTranslation",
      Target = "MARS BARYCENTER",
      Observer = "SSB"
    }
  },
  GUI = {
    Name = "Mars Barycenter",
    Path = "/Solar System/Planets/Mars",
    Hidden = true,
    Description = "SPICE Translation for targeting Mars Barycenter"
  }
}


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

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

asset.export(MarsBarycenter)



asset.meta = {
  Name = "Mars Transforms",
  Version = "1.1",
  Description = "Transform with position for Mars",
  Author = "OpenSpace Team",
  URL = "http://openspaceproject.com",
  License = "MIT license"
}
