Ehm ok.. let's take a step at a time! :mrgreen:Originally Posted by Paulius
I've the vector "position" of the car, the matrix "rotation" of the car and the "target" vector for where i want to drive to.
First, i obtain the 4x4 matrix that translate the origin to the car for both position and orientation, right ?
Then, i multiply the "target" by that matrix, and i get the "target" transformed to the new origin (the car). How do i do this multiplication?
Now, i check the X axis (that's easy.. )
Ok, i think i've understood the method.. now the problem is implementing it
Thank!
PS Paulius, maybe do you have a nice matrix calculation unit ?
PPS Anyone knows if the ODE matrices are compatible to the OpenGL ones ? Are they arranged in the same way in memory ?
Bookmarks