Don't keep world position

This commit is contained in:
Noah Pilarski 2022-09-10 18:04:50 -04:00
parent e688939e8c
commit 65f6a68f78

View File

@ -33,9 +33,10 @@ namespace NewHorizons.Builder.Atmosphere
if (prefab != null)
{
GameObject atmo = GameObject.Instantiate(prefab, atmoGO.transform, true);
GameObject atmo = GameObject.Instantiate(prefab, atmoGO.transform);
atmo.name = "Atmosphere";
atmo.transform.position = planetGO.transform.TransformPoint(Vector3.zero);
atmo.transform.localPosition = Vector3.zero;
atmo.transform.localEulerAngles = Vector3.zero;
Material material;