Jump to content

  • Log In with Google      Sign In   
  • Create Account

Awesome job so far everyone! Please give us your feedback on how our article efforts are going. We still need more finished articles for our May contest theme: Remake the Classics

#Actualbenp444

Posted 05 September 2012 - 06:05 AM

Thanks, but I already tried that:

  D3DXQuaternionRotationYawPitchRoll(&qOrient,ga->getRotation().y,ga->getRotation().x,ga->getRotation().z);
  D3DXMatrixRotationQuaternion(&rotation,&qOrient);
  world=scale*rotation*move;

The results are similar in that one axis rotates in model coords and the rest in world coords. Note in this case it is Z that always rotates in model space and X and Y that rotate in world space.

#1benp444

Posted 05 September 2012 - 05:49 AM

Thanks, but I already tried that:

  D3DXQuaternionRotationYawPitchRoll(&qOrient,ga->getRotation().y,ga->getRotation().x,ga->getRotation().z);
  D3DXMatrixRotationQuaternion(&rotation,&qOrient);
  world=scale*rotation*move;

The results are similar in that one axis rotates in model coords and the rest in world coords.

PARTNERS