Im writing a 3D game which is written in C++ OpenGL, and in short is a bunch of tanks driving around a terrain.
(more info @ http://www.extremesolutions.asheltie.com/Latest.html
Ok my problem is that i want to have the vehicles alligned to the ground.
Now under any given tank, the ground may consist of ~ 20 vertices.
I can get the x,y,z info of each of these vertices, as well as the polygon normals.
What i need to do is have it so the tank is aligned across the vertices in a realistic fashion.
Im happy to treat the Tanks chassis as a single plane right now, if thats any help...
Hard code or Algorithms welcome :)