device->GetTransform(D3DTS_VIEW,&View);
D3DXMATRIX InView;
D3DXMatrixInverse(&InView,NULL,&(View));
D3DXVECTOR3 Pos(InView._41,InView._42,InView._43+1.0f);
now i see the cube infront of the camera
now i want the cube to rotate with the camera ..
D3DXMatrixTranslation(&CubeMat1,Pos.x,Pos.y,Pos.z);
D3DXMATRIX Rot;
D3DXMatrixRotationY(&Rot,InView._31);
device->SetTransform(D3DTS_WORLD,&(CubeMat1 * ROT));
it does it little bit and stops on about 25 degree's of yawing left, why?
pic

now if i set it to
device->SetTransform(D3DTS_VIEW,&(CubeMat1));
then it turns with the camera but it's far away like this..

can anyone help?












