Tank Tracks Help

hey, i was wondering how i would go about doing something like this:

where the tracks mesh around the terrain