How to periodically delete a random number of particles


Let’s say you want to delete–oh, I don’t know–let’s say a random 7% of all particles, and you want to do that every N frames. Here’s one way to do it. You won’t get exactly 7%, but you’ll get close (eg I got numbers like 6.8%, 7.2%, and 7.25% when I tested it).

The Every Nth Frame compound is a custom compound that uses modulo:

3 thoughts on “How to periodically delete a random number of particles

  1. Now i need to have a specific number of – something –
    let’s say.. from 100 cactor, having 3 Actor IDs, i need 30% of 1st, 20% of 2nd, 50% of 3rd..

    I kept trying chains of this ” test random probability” compound with “IF’s”, but always bring me a different value instead of what i needed..

    please, help!!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s