How to make the wheels of a train Rotate AND move linearly along the track?

The wheels either rotate or move linearly along the track...