• Create Account

### #ActualMedo3337

Posted 17 December 2012 - 08:36 AM

Unfortutenly, the camera is working but I couldn't get the capsule mesh to look at the same direction as the camera.

I tried:
capsuleMesh->LookAt(camera->m_vLook.x, camera->m_vLook.y, camera->m_vLook.z);

The above code works perfectly only when I calculate the view matrix using D3DXMatrixLookAtLH() instead of the code you posted.

I'm trying to use m_vRight so I can't just use D3DXMatrixLookAtLH() to calculate the view matrix.

### #2Medo3337

Posted 17 December 2012 - 07:57 AM

Unfortutenly, the camera is working but I couldn't get the capsule mesh to look at the same direction as the camera.

I tried:
capsuleMesh->LookAt(camera->m_vLook.x, camera->m_vLook.y, camera->m_vLook.z);

The above code works perfectly only when I calculate the view matrix using D3DXMatrixLookAtLH() instead of the code you posted).

I'm trying to use m_vRight so I can't just use D3DXMatrixLookAtLH() to calculate the view matrix.

### #1Medo3337

Posted 17 December 2012 - 07:54 AM

Unfortutenly, the camera is working but I couldn't get the capsule mesh to look at the same direction as the camera.

I tried:
capsuleMesh->LookAt(camera->m_vLook.x, camera->m_vLook.y, camera->m_vLook.z);

The above code works perfectly only when I calculate the view matrix using D3DXMatrixLookAtLH() instead of the above code.

PARTNERS