diff --git a/NewHorizons/Builder/Atmosphere/CloudsBuilder.cs b/NewHorizons/Builder/Atmosphere/CloudsBuilder.cs index 53531d86..ea439e0b 100644 --- a/NewHorizons/Builder/Atmosphere/CloudsBuilder.cs +++ b/NewHorizons/Builder/Atmosphere/CloudsBuilder.cs @@ -210,11 +210,14 @@ namespace NewHorizons.Builder.Atmosphere cloudsTopGO.layer = LayerMask.NameToLayer("IgnoreSun"); } - RotateTransform topRT = cloudsTopGO.AddComponent(); - // Idk why but the axis is weird - topRT._localAxis = atmo.clouds.cloudsPrefab == CloudPrefabType.Basic ? Vector3.forward : Vector3.up; - topRT._degreesPerSecond = atmo.clouds.rotationSpeed; - topRT._randomizeRotationRate = false; + if (atmo.clouds.rotationSpeed != 0f) + { + RotateTransform topRT = cloudsTopGO.AddComponent(); + // Idk why but the axis is weird + topRT._localAxis = atmo.clouds.cloudsPrefab == CloudPrefabType.Basic ? Vector3.forward : Vector3.up; + topRT._degreesPerSecond = atmo.clouds.rotationSpeed; + topRT._randomizeRotationRate = false; + } cloudsTopGO.transform.localPosition = Vector3.zero; diff --git a/NewHorizons/External/Modules/AtmosphereModule.cs b/NewHorizons/External/Modules/AtmosphereModule.cs index 2e96d20f..f75e4bed 100644 --- a/NewHorizons/External/Modules/AtmosphereModule.cs +++ b/NewHorizons/External/Modules/AtmosphereModule.cs @@ -165,9 +165,9 @@ namespace NewHorizons.External.Modules public bool unlit; /// - /// How fast the clouds will rotate in degrees per second. + /// How fast the clouds will rotate relative to the planet in degrees per second. /// - [DefaultValue(10f)] public float rotationSpeed = 10f; + [DefaultValue(0f)] public float rotationSpeed = 0f; #region Obsolete diff --git a/NewHorizons/Schemas/body_schema.json b/NewHorizons/Schemas/body_schema.json index aecdc6be..9a23d4df 100644 --- a/NewHorizons/Schemas/body_schema.json +++ b/NewHorizons/Schemas/body_schema.json @@ -364,9 +364,9 @@ }, "rotationSpeed": { "type": "number", - "description": "How fast the clouds will rotate in degrees per second.", + "description": "How fast the clouds will rotate relative to the planet in degrees per second.", "format": "float", - "default": 10.0 + "default": 0.0 } } },