diff --git a/CHANGELOG.md b/CHANGELOG.md index 34aa9056..92433bf9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,6 +28,7 @@ * Fix incorrect part name for orbital engine cluster from Near Future Spacecraft * Fix issues with B9PSConditionalProp when applied to hatches. Props are now deleted instead of deactivated if their subtype is not active. * Add missing bottom hatch to vertical hub node from Planetside +* Fixed bugs when using PhysicsHold (thanks @R-T-B) ## 0.2.20.2 - 2025-10-24 @@ -690,4 +691,4 @@ * Fixed issues with craft containing multiple instances of the same part. * GUI cleanup. * Made sounds configurable. -* Assorted small bugfixes. \ No newline at end of file +* Assorted small bugfixes. diff --git a/FreeIva/FreeIva.cs b/FreeIva/FreeIva.cs index 4e92d1b4..ff77584f 100644 --- a/FreeIva/FreeIva.cs +++ b/FreeIva/FreeIva.cs @@ -645,7 +645,15 @@ internal static Vector3 GetFlightAccelerationInternalSpace(Part part, Vector3 in if (FlightGlobals.ActiveVessel.LandedOrSplashed) { - accelWorldSpace = FlightGlobals.ActiveVessel.graviticAcceleration; + // This allows for support for packed bases like in PhysicsHold mod. graviticAcceleration is only updated when unpacked + if (FlightGlobals.ActiveVessel.packed) + { + accelWorldSpace = FlightGlobals.ActiveVessel.gravityTrue; + } + else + { + accelWorldSpace = FlightGlobals.ActiveVessel.graviticAcceleration; + } } else {