Closed MegaPiggy closed 1 month ago
Setting .parent =
keeps the old world position and rotation.
I changed it to .SetParent(parentTransform, false);
to not keep the world position and instead keep local position/rotation which is 0 for both since it is a new gameobject.
Since tidally locked bodies change the rotation of the body to face the parent before the sector is created, you would get problems where the props and everything would not be in the same places as they are without being tidally locked.
Bug fixes