private void updateAttachnodes(bool userInput)
{
Vector3 pos;
AttachNode topNode = part.FindAttachNode("top");
if (topNode != null)
{
pos = new Vector3(0, currentMainModule.currentHeight * 0.5f + currentNoseModule.currentHeight, 0);
SSTUAttachNodeUtils.updateAttachNodePosition(part, topNode, pos, topNode.orientation, userInput);
}
AttachNode bottomNode = part.FindAttachNode("bottom");
if (bottomNode != null)
{
pos = new Vector3(0, -currentMainModule.currentHeight * 0.5f - currentNozzleModule.currentHeight, 0);
SSTUAttachNodeUtils.updateAttachNodePosition(part, bottomNode, pos, bottomNode.orientation, userInput);
}
AttachNode surface = part.srfAttachNode;
if (surface != null)
{
pos = new Vector3(currentDiameter * 0.5f, 0, 0);
Vector3 orientation = new Vector3(1, 0, 0);
SSTUAttachNodeUtils.updateAttachNodePosition(part, surface, pos, orientation, userInput);
}
}