Answers for "How can I convert a Quaternion to a direction vector?"
http://answers.unity.com/questions/525952/how-i-can-converting-a-quaternion-to-a-direction-v.html
The latest answers for the question "How can I convert a Quaternion to a direction vector?"Answer by edthered1009
http://answers.unity.com/answers/1603412/view.html
Extremely simple. Quaternion.eulerAngles makes it a Vector3. :)Mon, 18 Feb 2019 23:05:49 GMTedthered1009Answer by The_Mean_Fiddler
http://answers.unity.com/answers/994863/view.html
You have to do Quaternion * Vector3
Vector3 * Quaternion gives an errorFri, 26 Jun 2015 21:04:05 GMTThe_Mean_FiddlerAnswer by Bunny83
http://answers.unity.com/answers/525956/view.html
A quaternion doesn't have a direction by itself. It is a rotation. It can be used to rotate any vector by the rotation it represents. Just multiply a Vector3 by the quaternion.
Vector3 targetForward = targetRot * Vector3.forward;
Vector3 targetUp = targetRot * Vector3.up;
What axis you need you have to figure out yourself since your code is just an abstract collection of code fragments.
-------
Just to be absolutely clear for beginners: When you say *"Which way is this Quaternion's up?"* or *"Which way does this Quaternion point forward?"* what you **probably actually mean is**:
> "If you take something which is
> standing straight up and forward, and
> **apply the Quaternion to it**, which way is the forward vector now?"
The example code above provides exactly that information.Wed, 28 Aug 2013 22:51:56 GMTBunny83