I am writing a collada importer for my engine and i get to this:
<rotate>-0.5767782 0.5784926 0.5767783 -119.8846</rotate>
now it looks like a normal rotate xyzw rotate (rotate w degrees around arbitrary axis xyz). So i use this:
void Node::Rotate(float x, float y, float z , float w)
{
Rotate(XMQuaternionRotationAxis(XMVectorSet(x,y,z,0),w)) ;
}
void Node::Rotate(XMVECTOR Input)
{
*LocalOrientation *= Input;
RotationMatrixNeedsUpdate = true;
}
but its still not rotating right. Anyone know how to read this?
edit: i know the yaw/pitch/roll rotation is
x 89.99 y -0.18 z -89.99 from 3ds max
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement