local transforms = asset.require("../transforms")
asset.require("spice/base")
local kernel = asset.require("../kernels").jup310



local CallistoTrail = {
  Identifier = "CallistoTrail",
  Parent = transforms.JupiterBarycenter.Identifier,
  Renderable = {
    Type = "RenderableTrailOrbit",
    Translation = {
      Type = "SpiceTranslation",
      Target = "CALLISTO",
      Observer = "JUPITER BARYCENTER",
      Kernels = kernel
    },
    Color = { 0.4, 0.3, 0.01 },
    Period = 17.0,
    Resolution = 1000
  },
  Tag = { "moonTrail_solarSystem", "moonTrail_giants", "moonTrail_jupiter" },
  GUI = {
    Name = "Callisto Trail",
    Path = "/Solar System/Planets/Jupiter/Moons"
  }
}

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



asset.meta = {
  Name = "Callisto Trail",
  Version = "1.1",
  Description = [[Trail of Callisto as observed by the Jupiter. Data from NASA Spice
    (see base spice asset)]],
  Author = "OpenSpace Team",
  URL = "http://openspaceproject.com",
  License = "MIT license"
}
