   Quaternon Converting, Constraint
  1. How can seperate one random axis quaternion rotation to fixed axis quaternion rotation?ex) It is my test code for question1. q: one random axis quaternionfixed axis = m_axis1, m_axis2( orthogonal)rotation1, rotation2: fixed axis roationsAxisAngle rotation1 = Quaternion.ToAxisAngle(q);rotation1.Axis = Vector3.Normalize(rotation1.Axis);rotation1.Angle *= Vector3.DotProduct(rotation1.Axis, m_axis1);rotation1.Axis = m_axis1;AxisAngle rotation2 = Quaternion.ToAxisAngle(Quaternion.Invert(Quaternion.RotationAxis(rotation1.Axis, rotation1.Angle)) * q);rotation2.Axis = Vector3.Normalize(rotation2.Axis);rotation2.Angle *= Vector3.DotProduct(rotation2.Axis, m_axis2);rotation2.Axis = m_axis2;[Edited by - kiplring on May 26, 2006 8:45:43 PM]