Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

atreyu

How do you transform an object around it's local coordinate system in dx8

This topic is 6431 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

I keep messing with this but I can''t get it right. If I want to transform an object about it''s local coord. by rx, ry, and rz how do I set up the world matrix for g_pd3dDevice->SetTransform(D3DTS_WORLD, &matWorld); I tried creating a matX, matY, matZ and then doing a matWorld = matY * mat_x * matZ; but it doesn''t come out right. It always ends up rotating incorrectly.

Share this post


Link to post
Share on other sites
Advertisement

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!