Cycles Height based material

Does anyone know which set of nodes should be used to make the color of an object changing based on its velocity (speed) ?