Original Post
Hi
I am having problems implementing the correct movement of my mouse camera.
I have tried with this (pseudo code)
tmpVec, tmpMat2;
tmpVec = camMatPos;
camMatPos = 0;
D3DXMatrixRotateX(tmpMat2, input);
D3DXMatrixMultiply(camMat, camMat, tmpMat2);
camMatPos = tmpVec;
SetView();
This gives the result that the object I am looking at appears to rotate. But if I don''t set the camMatPos to 0 then it works better but the object rotates (which I think it shouldn''t) when I move the mouse in a rotating motion changing X and Y pos of the input.
Can someone explain the error I am making and give me some code that is working?
Thanks