Post #2480025
2026-05-08 04:45 UTC
Replies (2)
-
@archo@mastodon.gamedev.place 2026-05-08 07:45
the reason why I'm looking into this less efficient form of interpolation is that I want to combine it with angular velocity for my quadratic spline thing the problem with quaternions being that interpolating quaternions does not map to any kind of physical behavior at the numerical level whereas axis-angle is angular velocity vec3 dir=axis, length=angle encoding also allows componentwise separation such that each component can get a separate curve #gamedev #math
-
@sibaku@mas.to 2026-05-08 08:10
@archo@mastodon.gamedev.place From looking at it, it makes sense to me (there might be edge cases I am missing). Slerp computes a rotation with constant angular velocity around a fixed axis from q0 to q1. Now keep in mind that a rotation quat basically encodes axis angle (v* sin a/2, w*cos a/2) so it is already similar. The second method computes the relative rotation (q0 to q1), extracts axis + angle from that and interpolates the angle, so it is a constant angular velocity around a fixed angle, just like the first!