c - World axis to local axis -
how can modify/rotate axis angle world coords object coords?
see below:
void rotatematrix4(float *m, float angle, float *axis); //this function rotates matrix in object space void rotatelocal(float angle, float *axis) { rotatematrix4(m, angle, axis) } void rotateglobal(float angle, float *axis) { //do axis here rotatematrix4(m, angle, axis) }
you found answer - multiplication between tranformation matrix , vector - transforming axis vector object coords.
look @ transformation matrix more information on transformation matrices.
(i comment on answer - rank not yet high enough...)
Comments
Post a Comment