# Posts tagged ‘quaternion’

Never really needed to do this, but if you try to scale a rotation as a quaternion all you do is scale it’s axis’. The only way I know of is summation:

`(`

local rot = (eulerAngles 0 45 0) as quat

local sum = quat 0 0 0 1

local scl = 2.5

` for i = 1 to floor(scl) do`

(

sum += rot

)

sum += slerp (quat 0 0 0 1) rot (mod floor(scl) scl)

)