Jump to content
JKeil

Cross Vector on Box

Recommended Posts

Hey all, interesting little math dilemmna here.  The problem is refining cross product  alignment on a simple 6 primitive box (see attached).  

Basically here is where I am at.  Im doing some work on quaternion based rotation systems.   Got a neat rig in place for geometry with well designed uvs-- 6- stacked quaternions for 3 axis--pitch, roll, and yaw, using vectors @N, @up, and v@cross - respectively. 

I thought I had a really solid system in place, until I test it on.......a box........:wacko:.   

 

The issue is the cross product itself.  The cross products are aligning themselves sequentially-- basically wrapping around the box (see scene visualizer: "cross").   I mean it makes sense, but for the purpose of this scene,  I need to have all of the cross products pointing

1) towards the y axis, and

2) away from the object itself, and I want to do it procedurally.  

Any trig solutions solutions to this?  

12517_matrix_upld.hipnc

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

×