Alex Rivera | Logout

When I have two orientation quaternions, how do I find the rotation quaternion needed to go from one to the other?

Asked 2012-01-08T20:42:59.880
14

I'm using quaternions in my game, and I'm wondering how, when I have two orientation quaternions, I can get the rotation quaternion needed to go from the first one, q1, to the second one, q2. I'm self taught, so there may be obvious solutions missing from my vocabulary.

In equations, what I'm doing when I rotate from the first one to the other is as follows: q2 = r * q1

However, now r is the unknown. Do the rules of algebra count here too? If that's the case, I'd end up dividing a quaternion by another, something I can't find a good explanation for on the internet.

I'm using a program called game maker

Edit
Report

1 Answer

8

You should have a look to this page (euclideanspace), it is really interesting for self-teaching and understanding quaternions.

Here you have the arithmetics for quaternions and also a calculator that makes the operations for you:

http://www.euclideanspace.com/maths/algebra/realNormedAlgebra/quaternions/arithmetic/index.htm

Hope it helps.

answered 2012-01-10T16:15:43.803

Your Answer