Rine-Hart Posted March 9 Share Posted March 9 I keep banging my head against a wall with this and know the solution may be super simple. I have a vellum wire sim where the wires snap to pts on columns. I would like to have a certain number of points at the end of the wires align to the normal of the point to which they are snapping, instead of dangling at weird angles. I would love to get this running in the solver to keep the overall wire sim looking smooth. My brain keeps farting over the vector math and now I must rest. Any direction/assistance is always greatly appreciated. Also understand if this solution can be found on another topic Quote Link to comment Share on other sites More sharing options...
fencer Posted March 9 Share Posted March 9 Think how it works in the real world. If you need to align ends with the columns, maybe it must be so initially before doing wire sim? Quote Link to comment Share on other sites More sharing options...
Rine-Hart Posted March 9 Author Share Posted March 9 Thank you so much! Fortunately, Houdini is not the real world, it's vector math magic. What I would like is to understand is the linear algebra behind moving a group of simulated points to align to a directional vector. I apologize if that wasn't clear from the above. Any assistance with the math involved in this would be greatly appreciated. Quote Link to comment Share on other sites More sharing options...
fencer Posted March 9 Share Posted March 9 The real world Quote Link to comment Share on other sites More sharing options...
fencer Posted March 9 Share Posted March 9 Myabe this one. wire_align_connections.hipnc Quote Link to comment Share on other sites More sharing options...
Rine-Hart Posted March 9 Author Share Posted March 9 Holy Cannolli!! This is a brilliantly elegant real world solution! Much better that the 'fix it in post' hack job I was thinking. This gives me a tremendous amount to work with. Let me try and implement some of this and I may return with more questions. Thank you so very much for taking the time to build this out. Greatly appreciated! 1 Quote Link to comment Share on other sites More sharing options...
Rine-Hart Posted March 10 Author Share Posted March 10 Thank you again for this reference. Wondering how I might get this alignment from both ends? I've tried a few things within the for loop, like lerping between 2 different P's, but have kind of hit a wall. Again, very greatly appreciated. Quote Link to comment Share on other sites More sharing options...
fencer Posted March 10 Share Posted March 10 (edited) wire_align_connections_v02.hipnc Edited March 10 by fencer Quote Link to comment Share on other sites More sharing options...
Rine-Hart Posted March 10 Author Share Posted March 10 @fencer You are too kind sir!! Thank you again. I was correct in my reasoning by creating a separate align off of the root normal. but was over complicating everything in the mix. Thank you for sharing your knowledge, this is wildly helpful!! 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.