4
Multiplying two quaternions gives you a quaternion equivalent to performing the two rotations they represent in sequence.
q3 = q1 * q2
q3 * object = q1 * (q2 * object)
// "Perform rotation q2 with respect to the world axes, then q1"
// Or equivalently: "Perform rotation q1 about your local axes, then q2"
q4 = q2 * q1
q4 * object = q2 * (...
2
Is it possible to apply something to qx or qy to get the original q directly?
Yes it is! The transformation you're looking for is \$qy^{-1} * qx * qy\$
(My reasoning is like looking at a unit vector starting in the x direction, which if I rotate 45 degrees in the y axis would give me a vector pointing in the z=x direction, but this is clearly naive as it ...
Only top voted, non community-wiki answers of a minimum length are eligible
Related Tags
rotation × 989unity × 354
c# × 187
quaternion × 160
mathematics × 125
camera × 86
opengl × 84
3d × 81
matrix × 81
2d × 79
vector × 79
transformation × 75
xna × 70
physics × 56
movement × 55
java × 53
c++ × 52
libgdx × 38
sprites × 34
animation × 27
collision-detection × 21
angles × 20
android × 19
javascript × 19
geometry × 17