Calculate the distance from each particle, and use an equation like
1/distance^2(depending on what you want) for each particle, and add the
amount of contribution from each particle(not average). Getting the
distance and calculating is sometimes not much slower than skipping
particles beyond a certain distance, although that may help.
Post a reply to this message
|