pszczesny Posted May 28, 2018 Share Posted May 28, 2018 Hi, I found this setup for particle morph: float strength = ch("strength"); float arrivedistance = ch("arrivedistance"); int goalpt = @id % npoints(@OpInput3); vector goalpos = point(2, "P", goalpt); f@goaldistance = distance(goalpos, @P); vector goaldir = normalize(goalpos - @P); @v = goaldir * strength * fit(@goaldistance, 0, arrivedistance, 0, 1); Setup is very nice but it would be super to add functionality. Im new to vex. Is it possible to move particle into the nearest point on the target, because at the moment (I attached screenshots) particles morph in random way (evenly fills the entire object )? It would be perfect to fill object starting from the closest point. I will be very grateful for your help. Regards, Pawel Quote Link to comment Share on other sites More sharing options...
nuki Posted May 28, 2018 Share Posted May 28, 2018 give the pcopen function a try! You can retrieve the position of each/the closest point that way and feed it into your goaldir var. Quote Link to comment Share on other sites More sharing options...
pszczesny Posted May 29, 2018 Author Share Posted May 29, 2018 Hi, thank you for your answer:) I'll try, but I have no experience in houdini. Do you have an example of how to do it? greetings Quote Link to comment Share on other sites More sharing options...
nuki Posted May 30, 2018 Share Posted May 30, 2018 Here you go pcopen.hipnc 1 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.