From: Jason Daly (jdaly++at++ist.ucf.edu)
Date: 05/11/2005 08:20:14
Phil Day wrote:
>Apologies for the newbie question.
>
>What is the easiest way of converting from a direction vector to a
>quaternion / 4x4 matrix?
>Having migrated from WorldToolKit to Performer I was hoping for some
>conversion functions, but there don't seem to be any.
>
>Presumably this is because it's so elementary I should know how to do it!
>
>Thanks in anticipation of your help (and lack of flaming!)
>
>
>
Try this:
quat.makeVecRotVec(pfVec3(0,1,0), directionVec);
I don't know if this is exactly what you were looking for, but it sounds
like it.
--"J"
This archive was generated by hypermail 2b29 : Wed May 11 2005 - 08:20:20 PDT