MasterOfRa
New Member
- Reaction score
- 10
I'm trying to make a ability that creates a bolt of lightning that goes for a certain distance, or till it hits the edge of the map. it will be a bolt of lightning, instantly going the the end point of the line, and i need a way to determine the end point from inputting the start point, the (angle or dx,dy) and the distance.
I could of course use a loop that goes down the line, checking until it gets the the edge, but that would be inefficient.
I could of course use a loop that goes down the line, checking until it gets the the edge, but that would be inefficient.