private string getDistanceText(ModuleDockingNode port) { var activeVessel = FlightGlobals.ActiveVessel; var distance = Vector3.Distance(activeVessel.transform.position, port.GetTransform().position); return(string.Format("{0}m", HSUtils.ToSI(distance))); }