Archived

This topic is now archived and is closed to further replies.

aker_jus

Getting position values from a matrix.

Recommended Posts

Because I am not very good at matrix math, suppose I have a D3DXMatrixTranslation (&matrix, 10,10,100); Now.. this matrix is built, but afterwards, what are the matrix elements that correspond to each x,y,z, so I can find them later?

Share this post


Link to post
Share on other sites
This generally only works with translation matrices.

Look in (4,1),(4,2),(4,3) for the translation values. (I might have that transposed. I don''t think so, but they might be in (1,4),(2,4),(3,4) instead. )


I like pie.

Share this post


Link to post
Share on other sites
Great, thanks about the translation. Is there any way I can get the rotation and scale values from the other matrices though?

Share this post


Link to post
Share on other sites