Retrieving the orientation of the fork of a forklift

Started by
0 comments, last by lucky6969b 12 years, 4 months ago

Bone *f = (Bone *) D3DXFrameFind(m_pMesh->GetFrameRoot(), "ET_YELL02");
D3DXMATRIX mat;
D3DXMatrixIdentity(&mat);
D3DXMatrixInverse(&mat, NULL, &f->matCombined);


D3DXQUATERNION q;
D3DXQuaternionIdentity(&q);
D3DXQuaternionRotationMatrix(&q, &mat);


No matter what the coding looks, the orientation is wrong. Any lights?
Thanks
Jack
Advertisement
Bumping this "ET_YELL02" is the name of the fork It is currently pointing upward where it should point in the x-z plane Thanks Jack

This topic is closed to new replies.

Advertisement