'Difference' between two quaternions

前端 未结 2 1405
不知归路
不知归路 2020-12-15 05:41

I\'m working in Ogre, but it\'s a general quaternion problem.

I have an object, to which I apply a rotation quaternion Q1 initially. Later, I want to make it as if I

2条回答
  •  醉梦人生
    2020-12-15 06:03

    Think of it this way

    QInitial * QTransition = QFinal
    

    solve for QTransition by multiplying both sides by QInitial^{-1} (^{-1} being the quaternion conjugate)

    QTransition = QFinal * QInitial^{-1}
    

    It's just that easy.

    • note to @Dan Park - if you disagree with my math, please post a response to my answer, don't change the math. As far as I know, it's right.

提交回复
热议问题