KAS.KASModuleAttachCore.OnVesselGoOffRails C# (CSharp) Method

OnVesselGoOffRails() private method

private OnVesselGoOffRails ( Vessel vess ) : void
vess Vessel
return void
        private void OnVesselGoOffRails(Vessel vess)
        {
            if (FixedAttach.createJointOnUnpack
            && (vess == FixedAttach.srcPart.vessel || vess == FixedAttach.tgtPart.vessel)) {
              KAS_Shared.DebugWarning(
              "OnUpdate(Core) Fixed attach set and both part unpacked, creating fixed joint...");
              AttachFixed(FixedAttach.srcPart, FixedAttach.tgtPart, FixedAttach.savedBreakForce);
              SetCreateJointOnUnpack(false);
            }
        }