I was looking an irrlicht example code and i found: matrix4.
Is useful for .....? A vector in the space have 3 coordinates, why i must use a 4x4 matrix? The code is:
matrix4 mat;
mat.setRotationDegrees(rotation);
vector3df direction(1,0,0);
mat.rotateVect(direction);
where rotation is the Objectnode->getRotation().
What this code do?
Thx in advance.
Theoric question: matrix4
Check those sites:
http://www.ruthless.zathras.de/facts/ap ... matrix.php
http://www.j3d.org/matrix_faq/matrfaq_latest.html
http://sacredsoftware.net/tutorials/Tutorials.xhtml
P.S
Last one is really good.
http://www.ruthless.zathras.de/facts/ap ... matrix.php
http://www.j3d.org/matrix_faq/matrfaq_latest.html
http://sacredsoftware.net/tutorials/Tutorials.xhtml
P.S
Last one is really good.