anthonyblanchettepotvin Posted November 9, 2018 Share Posted November 9, 2018 (edited) Hello, I'm working on a school project and I need to align a curve to the end of a line both in position and rotation. My goal is to be able to create a curve, anywhere in the scene, and snap the start of the said curve (point 0) to the end of the line. The end of the line is extracted with a carve node on the line itself, so nothing complicated here. So far, I've been able to simply copy the curve onto the end of the line, but it only work with the position of the curve, not the rotation. It's important to note that I purposely created the curve in -Z axis. I know it will work if my curve is properly aligned in the Z axis, but I want my asset to be the most fail-safe possible. That said, It would be very appreciated if someone could help me with this issue. There is a attachment showing my current network and what it looks like in the Scene View. Thank you ! Edited November 9, 2018 by anthonyblanchettepotvin Forgot the attachment. Quote Link to comment Share on other sites More sharing options...
Noobini Posted November 9, 2018 Share Posted November 9, 2018 think this could help http://www.entagma.com/kitbash-vein-growth-part-1/ http://www.entagma.com/kitbash-vein-growth-part-2/ can't remember which part.....watch them both... Quote Link to comment Share on other sites More sharing options...
Aizatulin Posted November 9, 2018 Share Posted November 9, 2018 Hi, here is a quick and dirty approach using vex. You can draw your curve anywhere. The first vex node will make the curve x-axis aligned, so that the first and the last point are on the x axis and the end point is in point zero. The second node will do a similar transformation (only reversed order) to make the curve match the lines start end end points. curve_to_line.hipnc Quote Link to comment Share on other sites More sharing options...
anthonyblanchettepotvin Posted November 9, 2018 Author Share Posted November 9, 2018 Thanks guys ! I think that would be enough to make it work. 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.