mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Revert "make rotation-after-align work"
This reverts commit 749c02e22c246c7a9b5c018bcb92e1873c71e345.
This commit is contained in:
parent
749c02e22c
commit
9bb197ac6a
@ -132,7 +132,7 @@ namespace NewHorizons.Builder.Props
|
|||||||
// Apply the rotation after aligning it with normal
|
// Apply the rotation after aligning it with normal
|
||||||
var up = (prop.transform.position - go.transform.position).normalized;
|
var up = (prop.transform.position - go.transform.position).normalized;
|
||||||
prop.transform.rotation = Quaternion.FromToRotation(Vector3.up, up);
|
prop.transform.rotation = Quaternion.FromToRotation(Vector3.up, up);
|
||||||
prop.transform.rotation = rot * prop.transform.rotation;
|
prop.transform.rotation *= rot;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user