Move Default

This commit is contained in:
Noah Pilarski 2022-05-12 18:51:13 -04:00
parent b4739ce67f
commit 6f7314726a
2 changed files with 3 additions and 2 deletions

View File

@ -37,7 +37,8 @@ namespace NewHorizons.Builder.Body
cubeSphere.SetActive(false);
cubeSphere.transform.parent = sector?.transform ?? planetGO.transform;
cubeSphere.transform.rotation = Quaternion.Euler(90, 0, 0);
cubeSphere.transform.localScale = module.Stretch;
if (module.Stretch != null) cubeSphere.transform.localScale = module.Stretch;
else cubeSphere.transform.localScale = Vector3.one;
Mesh mesh = CubeSphere.Build(51, heightMap, module.MinHeight, module.MaxHeight);

View File

@ -9,6 +9,6 @@ namespace NewHorizons.External
public string TextureMap { get; set; }
public float MinHeight { get; set; }
public float MaxHeight { get; set; }
public MVector3 Stretch { get; set; } = (MVector3)Vector3.one;
public MVector3 Stretch { get; set; }
}
}