I have a quaternion representing the rotation of a three-dimensional character. I also have a line that should represent the new position of this character. This line position is defined by two 3D points.
This is the only data that I have, and I'm trying to call a method in a 3D package (Digital Rune), which takes 2 direction vectors and returns a quaternion representing the rotation needed to move the hand to a new position.
The problem is that I see some kind of odd behavior, as if the axes were mixed, and they usually do not behave. In addition, the Quaternion object (which is from a 3D package) representing the hand of three-dimensional guys has W, X, Y, and Z. Do X, Y, and Z represent the direction vector? Because this is what I need to call the function correctly. I used this along with my calculated direction vector from the endpoints of my line, but, as I said, it looks ridiculous.
If X, Y and Z are not a direction vector, how can I convert from a quaternion to two endpoints so that I can calculate the direction vector?
Nicros
source share