ASAT working

This commit is contained in:
Elon
2019-04-19 14:25:59 -06:00
committed by ElonOlsson
parent 23832046d6
commit dc2f28678e
3 changed files with 33 additions and 5 deletions

View File

@@ -49,7 +49,7 @@ local addSatelliteGroupObjects = function(group, tleFolder, shouldAddDuplicates)
return true
end
function debris(title, file)
function debris(title, file, color)
return {
Identifier = title,
Parent = transforms.EarthInertial.Identifier,
@@ -68,6 +68,7 @@ local addSatelliteGroupObjects = function(group, tleFolder, shouldAddDuplicates)
ArgumentOfPeriapsisColumn = "-",
MeanAnomalyAtEpochColumn = "-",
EpochColumn = "-",
Color = color
},
GUI = {
@@ -76,7 +77,7 @@ local addSatelliteGroupObjects = function(group, tleFolder, shouldAddDuplicates)
}
end
local Debris = debris(filenameSansExt, path)
local Debris = debris(filenameSansExt, path, group.TrailColor)
assetHelper.registerSceneGraphNodesAndExport(asset, { Debris })
-- asset.export("satImageFolder", satImageFolder)

View File

@@ -16,8 +16,8 @@ asset.require('util/webgui')
--asset.request('customization/globebrowsing')
asset.request('scene/solarsystem/planets/earth/satellites/satellites_all')
-- asset.request('scene/solarsystem/planets/earth/satellites/satellites_debris')
-- asset.request('scene/solarsystem/planets/earth/satellites/satellites_all')
asset.request('scene/solarsystem/planets/earth/satellites/satellites_debris')
-- Keybindings that are specific for this scene
local Keybindings = {