ehsan parizi Posted September 29, 2011 Share Posted September 29, 2011 Hi, Is there any way to kill the particles that are going to collide with a surface before the collision happens? a simple example is that when particles don't stop at collision and move through the collision object, Is there anyway to delete those particles from the beginning? In the attached file, you can see some particles don't stick on the collision surface, if there's a way to collect the ID numbers of all the particles that move through the collision obj during the simulation, then we can kill them in sop level, but I don't know how to make a group of all the particles that pass the collision object and use it at the first frame! Other than that in my original file, I have some particles that move with a very high speed, and I want to kill those too, IF there's a way to group the particles that collide with a surface in their lifetime from the first frame, then I think I can fix that problem too. But still the main question is how to make that group?! kill_those_mofos.hipnc Quote Link to comment Share on other sites More sharing options...
dennis.albus Posted September 30, 2011 Share Posted September 30, 2011 (edited) You could use a timeshift node and set it to the last frame of the simulation so you have all the necessary information about collisions that will be happening. The downside is, that this will become really slow as soon as your particle system gets more complicated as it has to be calculated for the whole framerange everytime you change it. -dennis edit: Just realized that this isn't exactly what you were aiming for. Maybe you should try to use SDF collisions. There has been a thread about this somewhere. Edited September 30, 2011 by dennis.weil Quote Link to comment Share on other sites More sharing options...
dennis.albus Posted September 30, 2011 Share Posted September 30, 2011 Anyway, here's the file to delete all particles that are going to collide. -dennis remove_colliding.hip Quote Link to comment Share on other sites More sharing options...
ehsan parizi Posted September 30, 2011 Author Share Posted September 30, 2011 Hi Dennis, Thanks for your answer, but yeah, that's not what I'm looking for. I'm trying to find a way to make an attribute for those particles who "will collide (or have any other specific info) in their lifetime". Quote Link to comment Share on other sites More sharing options...
ehsan parizi Posted September 30, 2011 Author Share Posted September 30, 2011 but it took care of the problem! so ...thanks again. one little note though, I used the same setup as yours, but it didn't work fine until I added a group sop after the time shift, and used that in my haspoint expression. 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.