Skip to content

Commit 38a82c9

Browse files
committed
Fix terminal velocity readout flickering to NaN while on the pad
1 parent 7c88603 commit 38a82c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RasterPropMonitor/Core/RPMVCEvaluators.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ internal double FallbackEvaluateTerminalVelocity()
277277
Vector3 force = pureDragV + pureLiftV;
278278
double drag = Vector3.Dot(force, -vessel.srf_velocity.normalized);
279279

280-
return Math.Sqrt(localGeeDirect / drag) * vessel.srfSpeed;
280+
return drag > 0 ? Math.Sqrt(localGeeDirect / drag) * vessel.srfSpeed : 0.0;
281281
}
282282

283283
/// <summary>

0 commit comments

Comments
 (0)