From 15531e5ec491f8df78c457eacda8d89fb2e99ffe Mon Sep 17 00:00:00 2001 From: Noah Pilarski Date: Fri, 14 Jun 2024 23:11:22 -0400 Subject: [PATCH] unparent after moving --- NewHorizons/Components/Quantum/QuantumPlanet.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/NewHorizons/Components/Quantum/QuantumPlanet.cs b/NewHorizons/Components/Quantum/QuantumPlanet.cs index f8b58dbe..d4da2a7e 100644 --- a/NewHorizons/Components/Quantum/QuantumPlanet.cs +++ b/NewHorizons/Components/Quantum/QuantumPlanet.cs @@ -158,6 +158,7 @@ namespace NewHorizons.Components.Quantum astroObject.SetOrbitalParametersFromTrueAnomaly(orbitalParameters.eccentricity, orbitalParameters.semiMajorAxis, orbitalParameters.inclination, orbitalParameters.argumentOfPeriapsis, orbitalParameters.longitudeOfAscendingNode, orbitalParameters.trueAnomaly); PlanetCreationHandler.UpdatePosition(gameObject, orbitalParameters, primaryBody, astroObject); + gameObject.transform.parent = null; if (!Physics.autoSyncTransforms) {