   [SOLVED] Join 2 matrix
  Hi!I'm trying to make a car game. I have a player at the back of the car (first matrix: the car can rotate) who can rotate (twice matrix), the problem is that the player rotation isn't synchronized with the car rotation so how can I join the 2 matrix ?Some screens to illustrate my problem:Thanks in advance.[Edited by - Kr00pS on February 2, 2008 10:09:51 AM]
  You need to concatenate the rotation matrices, but be sure that they are both relative to the same origin and axis. If the center of rotation of the character on the truck is different than that of the car, you will need to incorporate that difference into your concatenations.The most API agnostic resource I can find at here and here.   ;  Thanks, it worked. :)I used D3DXMatrixMultiply() function like this:D3DXMatrixMultiply(&c, van->GetRotationMatrix(), &m_RotationMatrix);m_Sprite->SetTransform(&c);   