Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion VesselTarget.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ public override object GetSuffix(string suffixName)
if (suffixName == "MASS") return target.GetTotalMass();
if (suffixName == "VERTICALSPEED") return target.verticalSpeed;
if (suffixName == "SURFACESPEED") return target.horizontalSrfSpeed;
if (suffixName == "AIRSPEED") return (target.orbit.GetVel() - FlightGlobals.currentMainBody.getRFrmVel(target.GetWorldPos3D())).magnitude; //the velocity of the vessel relative to the air);
if (suffixName == "AIRSPEED") return (double)(target.srf_velocity).magnitude; //the velocity of the vessel relative to the air);
if (suffixName == "EAIRSPEED") return (double)(target.srf_velocity * Math.Sqrt((target.atmDensity / FlightGlobals.getAtmDensity(FlightGlobals.getStaticPressure(0, FlightGlobals.currentMainBody))))).magnitude;
if (suffixName == "VESSELNAME") return target.vesselName;
if (suffixName == "ALTITUDE") return target.altitude;
if (suffixName == "APOAPSIS") return target.orbit.ApA;
Expand Down