attach camera to terrain PLEASE HELP

I need to attach a camera (camera is stationary, terrain moves) to a fractal brownian motion terrain. I dont know how to figure out the y heights at any given x z because of the way the points are and the fact that the terrain gets moved. any advice is appreciated.

http://www.vterrain.org/

Or search the web for “ray/mesh intersection”.