Hi. All of my existing code using quaternions to represent rotations. I am having trouble converting some of the hkTransform's rotations to quaternions.
When I step through, the data for the 3x3 matrix rotations matches what the "View XML" filter shows in the exporter so I know that data should be correct.
Here is the line that is having the problem:
hkQuaternion quat = transform.getRotation ();
Here is the hkRotation in the transformthat is causing the assert:
transform.m_rotation:
Col 0: x=0.23446380 y=0.16236414z=-0.52446860 w=0.0000000
Col 1: x=-0.053494837 y=0.98164922 z=1.4732159e-009 w=0.00000000
Col 2: x=0.14442635 y=0.10001397 z=0.85142982 w=0.00000000
getRotation returns the rotation but it raises the assert in the hkQuaternion::hkQuaternion ( hkRotation ) constructor.
Any ideas?
Thanks in advance!


