How do you convert a core::quaternion to a Havok hkQuaternion? Is it safe to assume you can just copy the members like you can with vectors (I've already converted those.)? I'm working on a Havok physics animator, and I need to convert between the two types of quaternions.
Thanks.
Converting core::quaternion to and from hkQuaternion
-
- Posts: 1691
- Joined: Sun May 18, 2008 9:42 pm
Converting core::quaternion to and from hkQuaternion
That would be illogical captain...
My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
-
- Posts: 758
- Joined: Mon Mar 31, 2008 3:32 pm
- Location: Bulgaria
It`s exactly the same- just copy the members:
Works for sure. I was using Havok some time ago.
Code: Select all
irr::core::quaternion irrQuat = // your definition here
hkQuaternion hkQuat.set(irrQuat.X, irrQuat.Y, irrQuat.Z, irrQuat.W);
"Although we walk on the ground and step in the mud... our dreams and endeavors reach the immense skies..."