Original Post
Hey, I''m trying to get the camera to always stay behind my jet. (to follow it and always face the direction it faces. What I have so far is this:
mDir.x = -matWorld(3,0);
mDir.y = -matWorld(3,1)-1.5;
mDir.z = -matWorld(3,2)+8; //worldMatrix
D3DUtil_SetTranslateMatrix(matView, mDir);
pd3dDevice->SetTransform( D3DTRANSFORMSTATE_VIEW, &matView);
but this only moves the camera in the same x,y,and z direction and does not keep it behind when it is rotated in anyway. How do i keep it behind and always facing the same way?