Page 1 of 1

How to spawn particles around a circle?

Posted: Fri May 08, 2020 12:57 pm
by harrison
Hi guys,

I'm trying to create an effect where particles spawn around (but not inside) a circle. Sorta like the particles that spawn when a pokemon is caught.

At first I thought I could do this by setting an offset, but I don't see any option to only spawn particles a certain distance away from the emitter.
I also considered just using a ton of emitters along the outside of the circle but that seems super inefficient.
I am also considering using a massive acceleration to teleport the particles to the boundaries of the sphere. This also seems like a hacky solution because the particles will still spawn from the center and their appearance will be delayed.

What is the best way of doing this?

Thanks,
Harrison

Re: How to spawn particles around a circle?

Posted: Fri May 08, 2020 2:11 pm
by sphyrth
ParticleSystem:setEmissionArea

distribution might be 'borderellipse' or 'borderrectangle' just before dx and dy.