How do you transform an object around it's local coordinate system in dx8
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement