How to interpolate rotations?

Posted by uhuu on Stack Overflow See other posts from Stack Overflow or by uhuu
Published on 2010-05-21T03:45:08Z Indexed on 2010/05/21 3:50 UTC
Read the original article Hit count: 227

Filed under:
|
|
|
|

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 simple lerp on the vectors fails to work when more than one dimension needs to be interpolated (i.e. produces undesirable rotations). Maybe building quaternions from the rotation vectors and using slerp is the way to go. But how, then, could I extract a vector describing the new rotation from the resulting quaternion?

Thanks in advance.

© Stack Overflow or respective owner

Related posts about math

Related posts about 3d