mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Change default cloud rotation speed (#266)
It should be 0 like giant's deep
This commit is contained in:
commit
c66f4a470e
@ -210,11 +210,14 @@ namespace NewHorizons.Builder.Atmosphere
|
||||
cloudsTopGO.layer = LayerMask.NameToLayer("IgnoreSun");
|
||||
}
|
||||
|
||||
RotateTransform topRT = cloudsTopGO.AddComponent<RotateTransform>();
|
||||
// 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<RotateTransform>();
|
||||
// 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;
|
||||
|
||||
|
||||
@ -165,9 +165,9 @@ namespace NewHorizons.External.Modules
|
||||
public bool unlit;
|
||||
|
||||
/// <summary>
|
||||
/// How fast the clouds will rotate in degrees per second.
|
||||
/// How fast the clouds will rotate relative to the planet in degrees per second.
|
||||
/// </summary>
|
||||
[DefaultValue(10f)] public float rotationSpeed = 10f;
|
||||
[DefaultValue(0f)] public float rotationSpeed = 0f;
|
||||
|
||||
|
||||
#region Obsolete
|
||||
|
||||
@ -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
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user