Archived

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

Mursel

movin player...

Recommended Posts

ok...i have one mesh object loaded in 3D space...so i want to make a mesh and camera moving together...i tried with D3DXMatrixTranslation function with same coords of mesh and camera...its something like this: if(key left) { D3DXMatrixTranslation(&matrix1,x,y,z); //for camera D3DXMatrixTranslation(&matrix2,x,y,z); //for mesh D3DXMatrixMultiply(&matrix3,&matrix2,&matrix1); //here i am confused...how to put them together (camera and mesh) device->SetTransform(View,matrix3); }

Share this post


Link to post
Share on other sites
You''re getting it completely wrong... You should go to www.drunkenhyena.com or nexe.gamedev.net or any other site with basic tutorials and read them carefully.

Share this post


Link to post
Share on other sites