void __fastcall TCamera::LookAt(TMatrix *in)
{
D3DXVECTOR3 E,U,L;
L.x=in->Matrix._41;
L.y=in->Matrix._42;
L.z=in->Matrix._43;
E.x=-Matrix._41;
E.y=-Matrix._42;
E.x=-Matrix._43;
U.x=0;
U.y=1;
U.z=0;
D3DXMatrixLookAtLH(&Matrix,&E,&L,&U);
}
Is it just floting point inaccuracy?
Neil
WHATCHA GONNA DO WHEN THE LARGEST ARMS IN THE WORLD RUN WILD ON YOU?!?!
Edited by - thedo on January 15, 2002 8:57:29 AM
D3DXMatrixLookAt
If I call this method each frame my camera moves down. I am not transforming my camera at all. Here is the look at code:
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement