![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | lowpolygon |
I have a image like below
I would like to draw a line from the right side (which I am assuming is the forward facing)
without it being rotated I can simply use something like
var pos = position
pos.x += 200
to make the line 200 unit long. But it won’t work if I rotate the image . I am wondering if there is a forward vector like vector3 but for vector 2? So it will always draw a line forward ?