Jump to content
garf

VEX quaternion to vectors

Recommended Posts

I know, I know - it's a daft question but nonetheless.....

matrix3 m = maketransform(@N,@up);
@orient = quaternion(m);

will get you a quaternion value from a vector and an up. How do you reverse that?

Share this post


Link to post
Share on other sites

If by reverse you mean how to get original matrix (or N and up):

matrix3 m = qconvert(@orient);

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×