My game entities currently hold a quaternion for their orientation with the ability to return either a 3X3 full rotation matrix (based on that quaternion), or a full 4X4 transform matrix. though what I have come to find is that I am not able to convert from my matricies to DirectX
matricies directly, so my next thought would be to force the conversion by hand. which of the following methods would work best/easiest/accurate?
- take the quaternion, and break it down into the individual axis-aligned rotations
- take either the full rotation matrix, or the full transform matrix and break it down
for either approach it would need to yield the component rotations (theta about X, phi about Y, rho about Z).
I have a feeling that breaking the quaternion down might be the easier rout, but I am not sure as to the actual operations to do this break down.
[0 0 0 1]
row. TheD3DXMATRIX
class has a constructor that takes an array of floats, as well. \$\endgroup\$