I’m using a spec POP representing people in a room to control the positions of a bunch of fields inside a particle system in the field POP. I’d like to do a simple attractor by taking the transform POP and scaling it down to attract to the center point of each field. Right now I can get the fields distance and the weight but there’s no way to access the fields center point (or pass through any spec information)
It’d be good to be able to do that somehow. Unless you can already do it and I’m missing something.
something like this attached file? If you have an example of things getting out of control, I’d be interested to see why and how we could implement things better.
EDIT: Sorry Markus your example does work but I still think the below thoughts are worth reading as there are other operations one might want to do with different POPs.
Something more like this but using the field spec and then having the transform POP’s pivot mapped to each fields centroid.
I think in order for this to work you’d need to have the field output it’s centroid as an attribute so it can map to the transforms px py and pz parameters and then your points will attract to the fields individually. The issue then is we don’t know which field is closest or how to weight efficiently. If there was a spec POP then maybe thats the way to do it…it’s fiddly. base_attractor_spec.tox (9.3 KB)
I guess copying a vec2 attribute onto each particle containing the field id and weight value would allow to lookup field positions later on and let you decide how to act on it instead of just giving you one combined weight value. Same I think is true for something like the Force POP where you might be interested in what forces the particle was effected by…