get neighbours > amount > rescale > size ? :)
On 3 June 2012 14:12, Anthony Martin <[email protected]> wrote: > Hi there, > > I want to scale/change the size of a particle based on how many nearby > particles there are. In my mind it feels like it should be very easy (I'm > sure it is): for each particle check how many particles there are in a > certain radius - use the number of particles to rescale them. So in other > words if a particle is on it's lonesome it gets scaled quite small but if > there are a fair few around it then leave it at about the initial particle > size. > > I've got mind block and can't figure this simple thing out. > > Help? > > Cheers, > > Anthony

