How to interpolate rotations?

后端 未结 4 2176
长发绾君心
长发绾君心 2021-02-14 15:44

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:36

    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.

提交回复
热议问题