[ODE] ODE rotation matrix

Roel van Dijk roelvandijk at home.nl
Sat Feb 28 12:17:29 MST 2004


On Saturday 28 February 2004 05:52, Fabian Mathews wrote:
> actually, it looks as if for example:
>
> the front left wheel lifts up, my model the back right wheel would lift up.
> so its like the opposite :-/
>
> so how to i fix this rotation matrix?
This is what I use:

float oglM[16];

oglM[0]  = odeM[0];
oglM[1]  = odeM[4];
oglM[2]  = odeM[8];
oglM[3]  = 0;
oglM[4]  = odeM[1];
oglM[5]  = odeM[5];
oglM[6]  = odeM[9];
oglM[7]  = 0;
oglM[8]  = odeM[2];
oglM[9]  = odeM[6];
oglM[10] = odeM[10];
oglM[11] = 0;
oglM[12] = 0;
oglM[13] = 0;
oglM[14] = 0;
oglM[15] = 1;


More information about the ODE mailing list