Posts in Technical
Lightning Gun VFX: Curved waypoint path

Ok, this one was a bit fiddly, this is due to having to manage each particle on a per frame basis and ensuring you have a valid reference to that particle's position in the path during its lifetime.

After trying multiple methods, which didn't work; ended up on deciding that the only way I could think for managing a waypoint system on a per particle basis, would be to do it based on distance, and each particle is to move towards the next waypoint from their closest one.

This I found, really reduced the complexity in the script, and in my logical process to figure out a working method.

Read More