• Advertisement


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

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

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