Question by
$$anonymous$$ · Apr 05, 2017 at 04:11 PM ·
raycastvector2debug.drawline
Is there something like a raycast but with a start and end point?
For example, I know you can use Debug.DrawLine()
to draw a line from a start point to an end point. In my case, I need to take two Vector2
s and return the "line" of those two points. I guess I can check the distance between the two points and then cast a raycast that is the same length, but that feels a bit hacky. Thanks.
Comment
Your answer
