Jump to content

Object facing vector


Recommended Posts

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:

Example.jpg

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 :)

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