[ODE] Understanding Rotation Matrix

Jan Kratochvil krata at matfyz.cz
Thu Dec 2 09:48:46 MST 2004


On Wed, 1 Dec 2004, Joey Coyle wrote:

> Thanks
> 
> So is this right??
> 
> For Matrix
> 
> 11    12    13
> 21     22    23
> 31     32    33
> 
> and matrix m
> 
> rc  11  =  m[0]
> rc  12  = m[1]
> rc  13  = m[2]
> rc  14 = m[3]  ==  padding set to zero
> rc  21  = m[4]
> rc  22 = m[5]
> rc 23 = m[6]
> rc 24 = m[7]  == padding set to zero
> rc  31 = m[8]
> rc 32 = m[9]
> rc 33 = m[10]
> rc 34 = m[11]  == padding set to zero
> 

Not exactly. m[3],m[7],m[11] will be more probably uninitialized. So be 
careful when converting to matrix4x4 ;-) 
And why don't you look into sources of ode? It is quite clear from them 
how the matrix is stored.
Jan Kratochvil


More information about the ODE mailing list