Original Post
When I read the document in DX Sdk,I saw a sample in the chapter [World Transform].Code like this: void C3DModel::MakeWorldMatrix( D3DXMATRIX* pMatWorld ) { D3DXMATRIX MatTemp; // Temp matrix for rotations. ... if(...) { // Produce and combine the rotation matrices. D3DXMatrixRotationX(&MatTemp, m_fPitch); // Pitch ... } } The type [D3DXMATRIX] does not have any constructor to be called to initialize the var [MatTemp], and I thought the value of the var [MatTemp] is rubbish.And the function [D3DXMatrixRotationX()] rotate the matrix around X-axis.Because the the matrix has a random start position ,after rotation,what can we get? Another random position?