MofuX

12-20-2001, 12:19 AM

hi, i have got an terrain and want to get a car driving on it. I have calculated 4 Points which represents the 4 wheels in x,z coordinate. The y-value is the height of the terrain in the point(x,z).

so now i have got:

frontleft x,y,z

frontright x,y,z

backleft x,y,z

backright x,y,z

now i need the rotation axis of car, represents by the heightvalues of my 4 points. But how can i get my x and z rotation? (the y-rotation is the direction angle of the car)

could somebody write down the maths i need for that?

ah, if you something dont understand take a look on my newest Terrain and Console Demo @

/*general site*/ www.mofux.de.vu (http://www.mofux.de.vu) www.spicken.de/mofux (http://www.spicken.de/mofux)

/*Download link*/ http://www.spicken.de/mofux/demos/demo1612-01.zip

thanks, your MofuX!

[This message has been edited by MofuX (edited 12-20-2001).]

so now i have got:

frontleft x,y,z

frontright x,y,z

backleft x,y,z

backright x,y,z

now i need the rotation axis of car, represents by the heightvalues of my 4 points. But how can i get my x and z rotation? (the y-rotation is the direction angle of the car)

could somebody write down the maths i need for that?

ah, if you something dont understand take a look on my newest Terrain and Console Demo @

/*general site*/ www.mofux.de.vu (http://www.mofux.de.vu) www.spicken.de/mofux (http://www.spicken.de/mofux)

/*Download link*/ http://www.spicken.de/mofux/demos/demo1612-01.zip

thanks, your MofuX!

[This message has been edited by MofuX (edited 12-20-2001).]