Hi all. This should be easy, but it's killing me...
I have a control object living outside a DOP network, a simple particle system. I've plugged it into the second input.
Inside the DOP I access this control position without issue, in a VOP. However I then want to follow up by killing particles in a POP wrangle, based on distance to the control object...
Easy right? Here's my vex:
f@dist = distance(@P, v@opinput0_P);
if ( @dist <= ch("threshold")) {
removepoint(0,@ptnum);}
... simple. But it kills particles around the origin, not the control object, as if v@opinput0_P = {0,0,0}
I've tried multiple variants on opinput, explicit path and the point function etc but it always gives me a "kill" radius around the origin, not the control object.
Anyone see what I'm missing?
Thanks in advance!