Advertisement

Terrain height and vehicle rotation

Started by May 04, 2001 09:33 AM
0 comments, last by Mika Halttunen 23 years, 6 months ago
Hi! Could you guys teach me the easiest way to find a terrain height in specified position? The terrain is a grid constructed from quads. And another question too, still related to terrains. How can I fiqure out rotation values for each axis based on the terrain slope? (normal actually) Like cars "crawling" along the terrain. Hope you understand what I mean --- Mika Halttunen
---Mika Halttunen
i had the same sort of problem <br><br>im assuming you can work out positions of the heightmap in certain fixed bits, say 2,4 or 5,6 etc, but want to find the height at 2.56,4.32 or 5.98,6.1 <br><br>if so have a look at the main chunk of code i got done eventually on the <a href="http://groups.google.com/groups?hl=en&lr=&safe=off&th=ac39007b203cbb7d,9&rnum=9&ic=1&selm=ASzI6.1%24Sc.59%40news1.cableinet.net">comp.games.development.programming.algorithms</a><br><br>as for the angle of the car, work it out from the change in height say a little in front of you <br><br>__________________<br>graham "red" reeves.<br><br><a href="mailto:red@deadpenguin.org">red@deadpenguin.org</a><br><a href="http://www.deadpenguin.org">www.deadpenguin.org</a>
__________________graham "red" reeves.[email=red@deadpenguin.org]red@deadpenguin.org[/email]www.deadpenguin.org

This topic is closed to new replies.

Advertisement