Jump to content
  • Advertisement
Sign in to follow this  
lucky6969b

Retrieving the orientation of the fork of a forklift

This topic is 2566 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts


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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!