Jump to content

Creating a vector between two points to attach (parent) and orient new object.


adizepl

Recommended Posts

Hi there. 

I am struggling with setting up the following:

I have 2 points and I need to create a position/rotation vector from them to attach a new geometry onto the vector.

I have got to the point where I have the new object aligned with the vector and I get a correct position and rotation, however I also get a random rotation along the object's own axis. (in an attached file it's the tube which is randomly rotating around it's own X axis.

Any help would be appreciated, see the attached set up in the file.

Many thanks! 

Adrianna
 

vector_01.hipnc

Link to comment
Share on other sites

the thing is that you only got one vector, from point 1 to point 2. You need atleast two vectors to get rid of the random flipping of your object. You can create a static vector like up to fix this, but it will flip when it crosses this static vector.

Heres some solutions

vector_fix.hipnc

 

Red is dihedral, Green is with up, and blue is with solver without up

vector_fix.gif

Edited by ThomasPara
added gif
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...