Skip to content

Commit

Permalink
Fix submergedDynamicPressurekPa and dynamicPressurekPa not getting se…
Browse files Browse the repository at this point in the history
…t to 0 when part becomes shielded
  • Loading branch information
siimav committed Jun 28, 2023
1 parent 49449b5 commit 7acee14
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ private static void UpdateAerodynamics(ModularFlightIntegrator fi, Part part)
part.dragVectorSqrMag = part.dragVector.sqrMagnitude;
if (part.dragVectorSqrMag.NearlyEqual(0) || part.ShieldedFromAirstream)
{
part.submergedDynamicPressurekPa = 0;
part.dynamicPressurekPa = 0;
part.dragVectorMag = 0f;
part.dragVectorDir = Vector3.zero;
part.dragVectorDirLocal = Vector3.zero;
Expand Down

0 comments on commit 7acee14

Please sign in to comment.