Extracting rotation from matrix

Blitz3D Forums/Blitz3D Programming/Extracting rotation from matrix

John J.(Posted 2006) [#1]
I am making a physics engine in C++ for Blitz3D for my latest project, and internal rotations are represented by 4x4 matrices. What I need to know is how to extract a rotation from the matrix which can be used by Blitz3D. I know how to extract an XYZ rotation from a matrix, but I don't know how to extract a ZXY rotation (which I think Blitz3D uses).


Tom(Posted 2006) [#2]
From Sweenies Tokamak Wrapper:



Check out Marks native code too:
http://www.blitzbasic.com/Community/posts.php?topic=42657


John J.(Posted 2006) [#3]
Thanks, that works fine.