How does the Animation Sample Project's animations get the root bone moving in the z axis?

I’m also curious about the function of the attach-bone. Could you explain what it’s suppose to do?