How to Rig a Snake to Follow a Curve