Hi,
I'm trying to create a 4X4 matrix for directX from the rigidbodies streamed from arena (x y z qx qy qz qw). I have some quatToMatrix examples but not sure how to expand the matrix with the translations. Thanks for any pointers.
how to create a 4X4 matrix for directX with natnet?
Re: how to create a 4X4 matrix for directX with natnet?
This should work with "Right Hand Coord" check box off in Other tab.
D3DXMATRIX m;
D3DXQUATERNION q(qx,qy,qz,qw);
D3DXMatrixRotationQuaternion(&m, &q);
m._41 = x;
m._42 = y;
m._43 = z;
D3DXMATRIX m;
D3DXQUATERNION q(qx,qy,qz,qw);
D3DXMatrixRotationQuaternion(&m, &q);
m._41 = x;
m._42 = y;
m._43 = z;
Re: how to create a 4X4 matrix for directX with natnet?
Thanks Yoshi
that's very neat.
that's very neat.