How to interpolate rotations?

后端 未结 4 1558
悲哀的现实
悲哀的现实 2021-02-14 15:29

I have two vectors describing rotations; a start rotation A and a target rotation B. How would I best go about interpolating A by a factor F to approach B?

Using a simpl

4条回答
  •  清歌不尽
    2021-02-14 16:15

    Well, your slerp approach would work and is probably computationally most efficient (even though it's a bit tough to understand). To get back from the quaternions to the vector, you'll need to use a set of formulas you can find here.

    There's also a bit of relevant code here, although I don't know if it corresponds to the way you have your data represented.

提交回复
热议问题