fix the heightmap proxy caster guy

This commit is contained in:
TerrificTrifid 2024-12-19 22:57:31 -06:00
parent 8752778f45
commit 36065fd3a5

View File

@ -91,14 +91,14 @@ namespace NewHorizons.Builder.Body
level2.name += "1";
LODGroup.RecalculateBounds();
var superGroup = planetGO.GetComponent<ProxyShadowCasterSuperGroup>();
if (superGroup != null) level2.gameObject.AddComponent<ProxyShadowCaster>()._superGroup = superGroup;
}
var cubeSphereSC = cubeSphere.AddComponent<SphereCollider>();
cubeSphereSC.radius = Mathf.Min(module.minHeight, module.maxHeight) * Mathf.Min(stretch.x, stretch.y, stretch.z);
var superGroup = planetGO.GetComponent<ProxyShadowCasterSuperGroup>();
if (superGroup != null) cubeSphere.AddComponent<ProxyShadowCaster>()._superGroup = superGroup;
cubeSphere.SetActive(true);
// Now that we've made the mesh we can delete the heightmap texture