adizepl Posted January 16, 2019 Share Posted January 16, 2019 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 Quote Link to comment Share on other sites More sharing options...
vtrvtr Posted January 16, 2019 Share Posted January 16, 2019 (edited) Not sure I completely understand, but take a look. May I add if you want just the tube, a simple polywire sop after you have your line will have the same effect vector_orient_odf.hipnc Edited January 16, 2019 by vtrvtr Quote Link to comment Share on other sites More sharing options...
ThomasPara Posted January 16, 2019 Share Posted January 16, 2019 (edited) 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 Edited January 16, 2019 by ThomasPara added gif Quote Link to comment Share on other sites More sharing options...
adizepl Posted January 16, 2019 Author Share Posted January 16, 2019 Great, thank you both for you help and some really useful tips! 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.