Euler angles to Quaternions?

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
killsto
Posts: 10
Joined: Sat Mar 28, 2009 6:30 pm

Euler angles to Quaternions?

Post by killsto »

I need to convert an irrlicht euler angle into a bullet quaternion angle. I had easily done the reverse with irrlicht's "quaternion::toEuler" method. Is there a meathod that I'm overlooking, which is probably the case.
killsto
Posts: 10
Joined: Sat Mar 28, 2009 6:30 pm

Post by killsto »

I found the obvious answer. Just in case anyone else needs help, the btQuaternion has a constructor that takes Euler angles :roll:
Post Reply