Original Post
I have following code to update the camera:
D3DXMATRIX temp; D3DXMatrixTranslation(&matrix,position.x,position.y,position.z); D3DXQuaternionRotationYawPitchRoll(&rotate,angley,anglex,0.0f); D3DXMatrixRotationQuaternion(&temp,&rotate); D3DXMatrixMultiply(&matrix,&matrix,&temp); device->SetTransform(D3DTS_VIEW,&matrix);Everything seems to be ok, but when I turn around near angley==PI, it will "invert" with x axis (when I go up it goes down, with angley==0 it behave normally) Does anybody has an idea what can be wrong?