Original Post
hi i´m making a simple car simulator. i want my tracks to have inclination in some parts of it(ex. passing by a hill). my problem is how to determine the angle and the axis to apply the rotation to the car so that it inclines in the right direction when passing by the hill. internally my tracks are represented by nurbs and so i thought that, ok i have the direction of my car i can retreive a tangent vector to each point of the track and applying the arcos to the dot product of the normalized tangent vector with the normalized direction vector i can get the angle to rotate the car. but this solution raises big problems like : the cosin is symmetrical(i dont know if the car is going up or down the mountain) and to which axis(or combination of axis) to apply that angle... i know the existance of quaternions and i've been told that using them is the best choice for applying combinations of rotations in more than one axis.the problem is that i dont have a clue how to use them :( (and more important use them on the context of my problem). can anyone give me some help/suggestion?