How to update a spline in real time

I currently have a spline set up to use as tank tracks and they work great, I was just wondering if anyone knew of any ways to update the spline points in real time so that when they move over objects, the spline points move up and down.