![]() |
Feedback Recycle particles that dropped out of bound - Printable Version +- Obi Official Forum (https://obi.virtualmethodstudio.com/forum) +-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html) +--- Forum: Obi Fluid (https://obi.virtualmethodstudio.com/forum/forum-3.html) +--- Thread: Feedback Recycle particles that dropped out of bound (/thread-4169.html) |
Recycle particles that dropped out of bound - kodra - 11-04-2024 It seems that the only way to control a fluid particle is via "Lifespan" parameter. I think it would be convenient if there is an option to provide a bounding box and all the particles go outside are recycled. RE: Recycle particles that dropped out of bound - josemendez - 11-04-2024 (11-04-2024, 03:30 PM)kodra Wrote: It seems that the only way to control a fluid particle is via "Lifespan" parameter. I think it would be convenient if there is an option to provide a bounding box and all the particles go outside are recycled. Hi! It’s trivial to implement this yourself, by using triggers and setting the lifetime of particles outside of it to zero. See: https://obi.virtualmethodstudio.com/manual/6.3/scriptingcollisions.html https://obi.virtualmethodstudio.com/manual/6.3/scriptingparticles.html Note that in Obi7/ compute where the amount of particles is much larger, doing this in a compute shader is advisable. See “using compute shaders to process particles” at the end of this link: https://obi.virtualmethodstudio.com/manual/7.0/scriptingparticles.html |