Terrain stuff?

Started by
1 comment, last by DefCom 21 years, 6 months ago
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.
Advertisement
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...
[email=esheppard@gmail.com]esheppard@gmail.com[/email]
Thanks for the quick responce,
I had started writing a function to store a heightmap, but i can't get my head around how to access the correct bit of the heightmap form the coords of the craft.


[edited by - Defcom on October 21, 2002 7:08:46 AM]

This topic is closed to new replies.

Advertisement