Archived

This topic is now archived and is closed to further replies.

DefCom

Terrain stuff?

Recommended Posts

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.

Share this post


Link to post
Share on other sites
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...

Share this post


Link to post
Share on other sites
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]

Share this post


Link to post
Share on other sites