How to make whees turn by using a spline

Then it would be along the lines of:

( with something meaningful plugged into the distance obviously )