public void AttachFixed(Part srcPart, Part tgtPart, float breakForce)
{
attachMode.FixedJoint = true;
FixedAttach.srcPart = srcPart;
FixedAttach.tgtPart = tgtPart;
if (!srcPart.packed && !tgtPart.packed) {
KAS_Shared.DebugLog("AttachFixed(Core) Create fixed joint on " + srcPart.partInfo.title
+ " with " + tgtPart.partInfo.title);
if (FixedAttach.fixedJoint)
Destroy(FixedAttach.fixedJoint);
FixedAttach.fixedJoint = srcPart.gameObject.AddComponent<FixedJoint>();
FixedAttach.fixedJoint.connectedBody = tgtPart.rb;
FixedAttach.fixedJoint.breakForce = breakForce;
FixedAttach.fixedJoint.breakTorque = breakForce;
} else {
SetCreateJointOnUnpack(true);
KAS_Shared.DebugWarning("AttachFixed(Core) Cannot create fixed joint as part(s) is packed,"
+ " delaying to unpack...");
}
}