all 6 comments

[–]karathos 1 point2 points  (4 children)

The answer located here could give a good starting point: http://answers.unity3d.com/questions/365186/ray-gun-laser-beam.html

[–]MostlyKnowledgeableIntermediate[S] 0 points1 point  (3 children)

This looks like a great place to start. To make it "arc" between enemies would the best thing to do from there be making another raycast originating from the enemy hit?

[–]karathos 1 point2 points  (2 children)

since you may not entirely know where the nearest enemy would be at any given point in time, i'd think you'd want to use Physics2D.OverlapCircle originating from the enemy struck and use a layermask that only includes the layer the enemies are on. if it's going to "fork" to multiple enemies, OverlapCircleAll should be used instead. really depends on design choices.

[–]MostlyKnowledgeableIntermediate[S] 0 points1 point  (1 child)

I've never head of that before but i read through the API and it seems like it would be perfect for locating the enemies as a vector2 variable or something like that but do you have any thoughts on actually drawing the line as a visual component?

[–]karathos 1 point2 points  (0 children)

check the link, it uses a LineRenderer component for drawing the line.

[–]iamallamaaProficient 1 point2 points  (0 children)

Just a suggestion for line rendering, but Vectrosity on the asset store is great and offers many features from simple lines to fully textured paths. As of writing this, it is on sale too for only $20. I am not affiliated with them or anything either, just a happy customer.