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



local BennuBodyId = 2101955

local BennuBarycenter = {
  Identifier = "BennuBarycenter",
  Parent = transforms.SolarSystemBarycenter.Identifier,
  Transform = {
    Translation = {
      Type = "SpiceTranslation",
      Target = BennuBodyId,
      Observer = "SSB"
    }
  },
  GUI = {
    Name = "Bennu Barycenter",
    Path = "/Solar System/Missions/OSIRIS REx"
  }
}


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

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

asset.export(BennuBarycenter)
