Hmmm, I am a total newbie but could you not put bones at places where you would attach/detach model and then do vec_for_bone()?