hi, my 2nd question for today to keep things going on
i posted this question a few weeks ago, but wasnt able to solve the problem…
i have some kind of off-road terrain ( flat roads, hills, pits, …) and i drive around on it with my car…
the terrain is made up of polys. imagine an excerpt of my scene: in the middle there’s the flat road, on the left the hill, and to the right a little pit to fall into, as well as many other hills
i can simply detect where my car is with my PtInsidePolygon function… so f.e. when i detect my car is over the “hill-poly”, i need to make the car going up the hill correct, i.e. regardless how the car is moving( i could drive the hill up backwards). so what i need to do is translate/rotate the car and then draw it, so its standing perpendicular to the hill-poly, facing in any direction i want… ok, i’m able to define a normal to the hill-poly and so on, but this is just too much for me!
i guess i have to take the current angle of the car, compare it with the hill-poly angle and make some kind of magic to get it right
sorry to ask the same question again, but this is making me nervous!
i could post more details on demand(didnt want to make this post too long…)