[ODE] Getting front vector from rotation matrix

Aras Pranckevicius nearaz at interamotion.com
Mon Feb 9 17:37:29 MST 2004


> Is there anyway to find the car front vector from the rotation matrix?

3x3 rotation matrix is nothing else but coordinate system's axes. One of them 
is "front", one is "up", one is "right" (eg. in D3D a commonly used 
convention is X=right, Y=up, Z=front). Depending on how you write your 
matrix, the axis vectors are either in matrix rows (D3D style) or columns (GL 
style). BTW, the "origin" of the coordinate system, or the "position", is the 
4th row/column of usual 4x4 matrix.

If you're using ODE (GL) style matrices, and you "front" axis is Z, then it's 
the 3rd column of the matrix.


Aras Pranckevicius aka NeARAZ
http://www.gim.ktu.lt/nesnausk/nearaz/



More information about the ODE mailing list