public void RemoveAttachedParts(HashSet<PartSim> partSims)
{
// Loop through the attached parts
foreach (AttachNodeSim attachSim in attachNodes)
{
// If the part is in the set then "remove" it by clearing the PartSim reference
if (partSims.Contains(attachSim.attachedPartSim))
attachSim.attachedPartSim = null;
}
}