diff --git a/KSPCommunityFixes/Performance/FlightPerf.cs b/KSPCommunityFixes/Performance/FlightPerf.cs index cac4582..8c61b48 100644 --- a/KSPCommunityFixes/Performance/FlightPerf.cs +++ b/KSPCommunityFixes/Performance/FlightPerf.cs @@ -117,7 +117,7 @@ private static bool VesselPrecalculate_CalculatePhysicsStats_Prefix(VesselPrecal vessel.rb_velocityD = velocity * vesselMassRecip; vessel.velocityD = vessel.rb_velocityD + Krakensbane.GetFrameVelocity(); vessel.CoM = vessel.CoMD; - vessel.localCoM = vesselInverseMatrix.MultiplyPoint3x4(vessel.CoMD); + vessel.localCoM = vessel.vesselTransform.InverseTransformPoint(vessel.CoM); vessel.rb_velocity = vessel.rb_velocityD; vessel.angularVelocityD = angularVelocity * vesselMassRecip; vessel.angularVelocity = vessel.angularVelocityD;