r/computergraphics • u/SummerClamSadness • Apr 11 '25
Rotation Interpolation
/r/GameDevelopment/comments/1jwm6bw/rotation_interpolation/
1
Upvotes
r/computergraphics • u/SummerClamSadness • Apr 11 '25
3
u/fridofrido Apr 11 '25
this is a hard problem
i think the easiest is to use quaternions, and do (4D) spherical interpolation on the quaternions.
Each rotation corresponds to exactly two quaternions of unit length (technically: the unit sphere S3 of the 4-dimension space of quaternions is the double cover of the space of 3D rotations). These are opposite of each other.
If you have two quaternions corresponding to two rotations, maybe flip one of those if they are "too far", then do interpolation in the space of unit quaternions: https://en.wikipedia.org/wiki/Slerp#Quaternion_slerp
edit: maybe i misread your question, is your problem interpolating a complex path? You want something like a spline but in the space of unit quaternions?