New mathematical model links up slithering with some kinds of swimming and walking, and it could make programming many-legged robots easier.