Jump to content

matrix rotations and up vectors in vex


Graeme

Recommended Posts

Hi guys,

I have a little test I've been working on to learn more about matrices and rotations using vex wrangles (and avoiding the copy sop). I've attached a file that shows where I am at, I have an object being translated by an input P and it's rotation is is being controlled by a rotation matrix calculated using the dihedral function working on @N and @v. It all seems to work almost properly. What I am wondering is how I could use an up vector within the wrangle to stabilize the rotations, just like you can achieve using the copy sop, but keeping it all in vex.

Also any tips on how to do this all better, optimisations, etc. would be ace! 

cheers

G

the file is H16

MatrixRotations.hipnc

 

untitled.gif

Edited by Graeme
Link to comment
Share on other sites

  • 2 months later...
  • 9 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...