Jump to content

How to use the rotation inside the VEX


LYH

Recommended Posts

matrix3 mat = ident();
vector axis = {0,1,0};
float angle = relbbox(0, @P).y;
rotate(mat, angle, axis);
@P *= mat;

rotate is a function that changes a matrix. you need to multiply the changed matrix with your point positions to actually rotate your geometry.

Make sure to check out: http://www.tokeru.com/cgwiki/index.php?title=HoudiniVex#Rotate_with_a_matrix

 

 

  • Like 2
Link to comment
Share on other sites

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...