Revert "(TODO: TEST MORE) use GeneralPropBuilder for normal"

This reverts commit 75b703716106773edd4776d111f9fabc9d97c721.
This commit is contained in:
JohnCorby 2023-03-18 23:05:44 -07:00
parent 75b7037161
commit 3c691d3511

View File

@ -131,10 +131,9 @@ namespace NewHorizons.Builder.Props
case PropModule.NomaiTextInfo.NomaiTextType.Wall:
{
var nomaiWallTextObj = MakeWallText(planetGO, sector, info, xmlPath, nhBody).gameObject;
// TODO: hawkbar says normal doesnt work, but it seems to be fine in examples. further testing required probably (im lazy)
nomaiWallTextObj = GeneralPropBuilder.MakeFromExisting(nomaiWallTextObj, planetGO, sector, info, normal: info.normal);
nomaiWallTextObj = GeneralPropBuilder.MakeFromExisting(nomaiWallTextObj, planetGO, sector, info);
/*
// using GeneralPropBuilder normal here does not work so have to do it manually
if (info.normal != null)
{
// In global coordinates (normal was in local coordinates)
@ -154,7 +153,6 @@ namespace NewHorizons.Builder.Props
nomaiWallTextObj.transform.RotateAround(nomaiWallTextObj.transform.position, forward, zRotation);
}
}
*/
// nomaiWallTextObj.GetComponent<NomaiTextArcArranger>().DrawBoundsWithDebugSpheres();