Hi all, i’m currently poking around in a sample scene named Lightning Bolt, it’s from the unity built in assets somewhere.
I’m currently attempting to dissect how this works, and i’m not quite getting it.
Here’s how it looks in practise:

It undulates and moves around. it’s not what i’d call a perfect lightning animation, but it’s a decent start.
Maybe relevant, here’s the inspector properties of the emitter, it has two particle related components
As for how it works, there’s some part of it which is constantly moving, but i’m not clear on what, or why. The full code for the lightning emitter is: Legobet88 = Daftar Situs Slot Online Terpercaya & Slot Gacor Resmi Hari Ini di Login Bet88
As far as i can tell, all the magic happens on line 49, where the position of something is being set. if i comment that out, the effect looks like this:

there’s no bolt or beam or anything now, it’s just particles floating around a sphere.
I’m completely stumped here, what is going on, how does this lightning work?
And as a side note, i’m interested in lightning in general, if anyone knows other/better methods of making it, please do let me know
