Changing anim mesh position

Started by
-1 comments, last by Arkanoid 11 years, 9 months ago
Hi, sb know how to change mesh positions in directx? I tried like this:

D3DXMATRIX m2;
D3DXMatrixTranslation(&m2, x, y, z );
g_pd3dDevice->SetTransform( D3DTS_WORLD, &m2 );

then
render......
and

g_pd3dDevice->SetTransform( D3DTS_WORLD, &m1 );
but it doesn't work, mesh is still on it start posotion.

This topic is closed to new replies.

Advertisement