Locomotion with rotation

How can I make rotating motion like this on grasshopper?


790b1119408757.562e1d5f27228