As part of an attempt to diversify my income I made several Unity plugins and scripts, Beamtime was the most tricky to create.

Beamtime is a script intending to create dynamic laser beams that intersect, interact with each other and the environment.

Beamtime was a feature originally developed for Asteroid Deathmatch that was later cut but may see it's way back in future updates (you can actually see an early build of this game at 00:05 in the trailer).

The maths itself is kind of complex but the basic principle is that of a process of elimination, starting with the lowest distance collision/intersection.

Beamtime is not my top seller but it's catching up and proving quite popular due to the unique gameplay mechanics it can give.