Push particles outward from center

Hello,

How do I make these smoke particles go outwards only, e.g. after an explosion?

I tried with negative and positive velocity but it comes back into the center and that is not what I want.

Thanks!

Hi @FlightOfOne ,

You can subtract the particle position by the effect position (or whatever the center you want to move away from is) and normalize the value. This will give you a vector pointing from the center outwards to the particle. You can then multiply that value by the speed you desire. If your effect is in local space, you can even skip the subtract.

Something like this:

In 10.2.0 we also harmonized how different position blocks work, so if you are on that version or newer, you can also simply add a Set Velocity from Direction & Speed block as the direction will already be set automatically in the Set Position block:

Hope this helps!

6745810--777658--upload_2021-1-20_18-42-28.png

@VladVNeykov

Thank you so much for this!

I am using 10.2.2 but I do not see that Set Velocity from the Direction block. Do I need to install anything else?

This is all I see.

Nvm, I found it, guess it is an experimental feature. Had to enable from here: Edit > Preferences > VFX > Experimental Operators.

And it worked, that was easy, thank you!

1 Like