Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualDgekGD

Posted 29 November 2012 - 03:34 PM

What's the problem with creating rotation matrix D3DXMatrixRotationYawPitchRoll(pResult, 0.2, 0.1, 0.1);

Multiplying current transformation matrix with this one will exactly do what you want: Apply
pitch+=0.1f;
yaw+=0.2f;
roll+=0.1f;
to btRigidBody.

#1DgekGD

Posted 29 November 2012 - 03:32 PM

You can't just get pitch, yaw, roll from btRigidBody.

What's the problem with creating rotation matrix D3DXMatrixRotationYawPitchRoll(pResult, 0.2, 0.1, 0.1);
Multiplying current transformation matrix with this one will exactly do what you want: apply
pitch+=0.1f;
yaw+=0.2f;
roll+=0.1f;
to btRigidBody.

PARTNERS