I’m trying to create a lightning bolt effect from scratch as a form of practice for myself but I’m hitting several road blocks that I’d hope to get some assistance on.
- My bolt appears to look too linear. I want a more random, erratic set of points, but I’m unsure how to get this effect.
- When I try to connect my points with parts, the parts do not connect, so I just get a group of parts instead of what should look like one big “line”
- My bolt starts in the middle of my origin, instead of the end.
Since I do not want to clog this question with code, I have placed it in this link.
This is the result of the code. As you see, the part starts at the middle of where I have the origin of the start point, instead of at the end; the connecting parts are not jagged, and their overall positions don’t really look erratic enough. Any help or advice would be greatly appreciated!
EDIT 1: The effect I’m looking to replicate.
