Revert "make rotation-after-align work"

This reverts commit 749c02e22c246c7a9b5c018bcb92e1873c71e345.
This commit is contained in:
JohnCorby 2022-11-06 18:45:34 -08:00
parent 749c02e22c
commit 9bb197ac6a

View File

@ -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
{ {