Original Post
Hi There!
I´m having a problem with my rotation. I have created an aircraft that I steer with "mousevalues" that are set into m_vRot.y and m_vRot.x. And now to the problem, I want the aircraft to roll? I can´t use the fourth value in the D3DXMatrixRotationYawPitchRoll function, because it will destroy my steering with the mouse. How can solve this problem?
Please finsih my code...
D3DXMATRIX mTmp;
D3DXMatrixRotationYawPitchRoll(&m_toWorld, m_vRot.y, m_vRot.x, 0.0f);
D3DXMatrixTranslation(&mTmp, m_vPos.x, m_vPos.y, m_vPos.z);
D3DXMatrixMultiply(&m_toWorld, &m_toWorld, &mTmp);
D3DXMatrixScaling(&mTmp, m_vScale.x, m_vScale.y, m_vScale.z);
D3DXMatrixMultiply(&m_toWorld, &m_toWorld, &mTmp);
/Have A Nice Day -Patrick