SteveNi Posted October 5, 2016 Share Posted October 5, 2016 Hi So basically I have a vector and an obj, how can I make the obj face the vector by specifiyng the front axis of the obj? (front, side, up) Is there a traditional way to do this? Because Im trying to do this myself through Vex and some transforming operations.. Example: Quote Link to comment Share on other sites More sharing options...
davpe Posted October 5, 2016 Share Posted October 5, 2016 it depends on many factors. what is the source of the vector (another object's transform, another object's attribute, current object's attribute)? on what level you want to make the transform (you want to transform the object itself or it's contents)? do you want to transform one object or many objects? do you have one input vector or many of them? the solution may vary greatly. Quote Link to comment Share on other sites More sharing options...
dchow1992 Posted October 6, 2016 Share Posted October 6, 2016 hope this helps matrix_ops.hip 2 Quote Link to comment Share on other sites More sharing options...
SteveNi Posted October 8, 2016 Author Share Posted October 8, 2016 On 6/10/2016 at 8:25 AM, dchow1992 said: hope this helps matrix_ops.hip Yes exactly! I knew that you had to use matrices and vector math like the dot product you used, to rotate the obecjt,but Im not yet pratical of this side of houdini, thank you so much. I'll credit you whenever I'll use this file you made in a project/video Thanks again Quote Link to comment Share on other sites More sharing options...
SteveNi Posted October 10, 2016 Author Share Posted October 10, 2016 Actually I encountered a problem... As you can see in image 1 the coordinate system is ok, but as the object wich the system is generated by, moves in the "lower part" of the circle, it flips to the other side...how can I fix this? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.