mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Don't keep world position
This commit is contained in:
parent
e688939e8c
commit
65f6a68f78
@ -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;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user