Terrain stuff?
I am trying to do a simple podracer style game. I am currently loading my models and terrain from .x files, I can fly my craft around and have the camera follow. I want to have have the craft stay a fixed height above the terrain, but i have no idea how to access the height of the terrain mesh directly below the craft.
Any help will be much appriciated, thanks.
How about when loading the mesh, store all the vertex positions (its some sort of hieghtmap style terrain I presume?) into a big array[x][y] and then just get the position of the craft and access it from the array to get the point...
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement