- Home /
Looking for a way to draw firing arc at runtime
I would really love to be able to display my turrets' firing arcs.
I have the data for their travel distances up down left right. So I don't see why I cant draw a line out of each one and put some kind of fade between them?
I highlight them already when you mouse over them in your weapon control panel. I just want to draw that arc.
Any thoughts?
Comment
Answer by kevinspawner · Mar 09, 2015 at 09:23 AM
You can use the line renderer to create the arc. Simply calculate the angle and direction and pass the values to the line renderer as how far the line renderer need to leave the trail. If you need simply an arc, just add the line renderer and adjust the values in the line renderer component. Hope this helps.