hmihalis1 Posted April 29, 2020 Share Posted April 29, 2020 Hi all, I'm trying to come up with some vex to use to kill particles in a sim when they have traveled a certain distance from their birth location. I have mother particles that last one frame and i'm using a pop replicate to spawn new splash particles from them. What i'd like to do is store the position of the mother particles and subtract it from the position of each replicated particle every frame to get the distance, then set them as dead once this has passed a given threshold. Extremely limited VEX experience here, so if anyone could give me some kind of starting hint/snippet that would be amazing Many thanks, H Quote Link to comment Share on other sites More sharing options...
Whatsinaname Posted April 29, 2020 Share Posted April 29, 2020 Your idea is not bad at all...why don't you start with a scene that works until you get stuck and ask a more specific question as soon as you're stuck, probably accompanied by your scene file. I reckon this get you more answers more quickly. 1 Quote Link to comment Share on other sites More sharing options...
Atom Posted April 29, 2020 Share Posted April 29, 2020 You can add VEX code inside a Popnet by dropping down a PopWrangle. Check out the VEX distance function. https://www.sidefx.com/docs/houdini/vex/functions/distance.html 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.