Original Post
I am making a function so my mesh can be rotated to look at a certain point and I am using D3DXMatrixLookatLH to get the matrix from the vector.
This is how I multiply my matrices (without the lookat matrix)
D3DXMatrixMultiply(&meshes.attributes.mMatrix, &meshes.attributes.mScalingn, &meshes.attributes.mRotation); D3DXMatrixMultiply(&meshes.attributes.mMatrix, &meshes.attributes.mMatrix, &meshes.attributes.mPosition);Ok, the above transformation code works. But I do not know what to do with the new matrix from the LookAtLH, how to multiply it with the others. Can someone help me here? Thanks a lot