I want my wind to react to where the particle are. So if they're below P.y 0 then it pushes them up and visa versa. I've got Vop Sop to work but not the code.
My Vex is: if P.y = < 0 { wind.y = 1 } else {wind.y = -1 };
and my Pop Vop looks like this:
Is it just a personal preference to use code or nodes? And what would be the best way to approach this?
Also would you generally use a Vop Sop to effect a Pop Wind or is the Vop Sop a replacement?
if you use POP Wind and set Wind Velocity to 0,1,0 (or the y magnitude instead of 1) then the simplest VEXpression you can do is probably
wind.y *= @P.y>0?-1:1;
also be careful when doing your own VOPs/Wrangles, @force is not behaving like wind, there is Add Wind Force VOP to mix wind forces, but anyway in many cases it's much easier to just tweak POP Wind