three.js - How to convert a Matrix4 to a Matrix3 in ThreeJS -
Do anyone know how to convert matrix 3 to matrix 3 in three JS?
What I'm trying to achieve is 'Inverse sequence rotation' matrix Do I understand that you need to do something like this:
1) Change the camera. Word WINDOWS INWORLD FOR MATRIX3
2) Then invert result
Is that correct? And if so, how do I change from matrix 4 to 3?
Thanks for any help
You can invert the 4x4 matrix . In the upper 3x3 the inverse rotation will be what you want. Otherwise use the set method of 3x3 matrix and assign it the value of your 4x4 matrix.
Comments
Post a Comment