TerrainY equivalent for meshes??

Blitz3D Forums/Blitz3D Programming/TerrainY equivalent for meshes??

I have a mesh acting as a terrain and I want to get the equivalent of the terrainy() so that I can place a car on it. I tried to build it with collisions, but got absolutely no-where other than confused. I tried using aligntovector, based on a collision of a 'terrain detect' pivot under the car - which, again, failed miserably! What I thought of was - if there was a way of finding the nearest vertex on the mesh perhaps there would be a way of calculating the y? Man, I don't know. I've been working on this for two days now and it's making me wierd. Any help would be appreciated and any code would be even more appreciated ;)