Dear all,
Is there any built in way, how to convert btQuaternion to a btMatrix, please? I did not find appropriate method in btQuaternion.
Regards.
Convert btQuaternion to btMatrix
-
Flix
- Posts: 456
- Joined: Tue Dec 25, 2007 1:06 pm
Re: Convert btQuaternion to btMatrix
Code: Select all
/**@brief Constructor from Quaternion */
explicit btMatrix3x3::btMatrix3x3(const btQuaternion& q) { setRotation(q); }
/** @brief Set the matrix from a quaternion
* @param q The Quaternion to match */
void btMatrix3x3::setRotation(const btQuaternion& q) Code: Select all
btQuaternion q(...);
btMatrix3x3 m(q);
-
Bunkai.Satori
- Posts: 7
- Joined: Sat Sep 18, 2010 12:33 pm
Re: Convert btQuaternion to btMatrix
Dear Flix,
thank you.
thank you.