mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Forgot to multiply by height
This commit is contained in:
parent
93ef061b4b
commit
422489f8de
@ -90,7 +90,7 @@ namespace NewHorizons.Builder.Props
|
|||||||
|
|
||||||
var prop = prefab.InstantiateInactive();
|
var prop = prefab.InstantiateInactive();
|
||||||
prop.transform.SetParent(sector?.transform ?? go.transform);
|
prop.transform.SetParent(sector?.transform ?? go.transform);
|
||||||
prop.transform.localPosition = go.transform.TransformPoint(point);
|
prop.transform.localPosition = go.transform.TransformPoint(point * height);
|
||||||
var up = go.transform.InverseTransformPoint(prop.transform.position).normalized;
|
var up = go.transform.InverseTransformPoint(prop.transform.position).normalized;
|
||||||
prop.transform.rotation = Quaternion.FromToRotation(Vector3.up, up);
|
prop.transform.rotation = Quaternion.FromToRotation(Vector3.up, up);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user