Quaternion - Rotate To

后端 未结 4 1974
醉话见心
醉话见心 2020-12-17 05:22

I have some object in world space, let\'s say at (0,0,0) and want to rotate it to face (10,10,10).

How do i do this using quaternions?

4条回答
  •  生来不讨喜
    2020-12-17 05:38

    You may want to use SLERP (Spherical Linear Interpolation). See this article for reference on how to do it in c++

提交回复
热议问题