mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Use mathf instead
This commit is contained in:
parent
6945c0b6c7
commit
074084c8f3
@ -71,7 +71,7 @@ namespace NewHorizons.Builder.Body
|
||||
cubeSphereMC.sharedMesh = mesh;
|
||||
|
||||
var cubeSphereSC = cubeSphere.AddComponent<SphereCollider>();
|
||||
cubeSphereSC.radius = Math.Min(module.minHeight, module.maxHeight);
|
||||
cubeSphereSC.radius = Mathf.Min(module.minHeight, module.maxHeight);
|
||||
|
||||
var superGroup = planetGO.GetComponent<ProxyShadowCasterSuperGroup>();
|
||||
if (superGroup != null) cubeSphere.AddComponent<ProxyShadowCaster>()._superGroup = superGroup;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user