This commit is contained in:
Noah Pilarski 2022-07-14 23:11:35 -04:00
parent f34fea66a4
commit e7ecdd6328

View File

@ -28,11 +28,19 @@ namespace NewHorizons.Builder.Atmosphere
shockLayerRuleset._type = ShockLayerRuleset.ShockType.Atmospheric;
shockLayerRuleset._radialCenter = airGO.transform;
if (config.Atmosphere.clouds != null)
{
shockLayerRuleset._innerRadius = config.Atmosphere.clouds.innerCloudRadius;
shockLayerRuleset._outerRadius = config.Atmosphere.clouds.outerCloudRadius;
}
else
{
var bottom = config.Base.surfaceSize;
var top = config.Atmosphere.size;
shockLayerRuleset._innerRadius = (bottom + top) / 2f;
shockLayerRuleset._outerRadius = top;
}
if (config.Atmosphere.hasOxygen)
{