0 votes

I have a image like below
enter image description here

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 ?

asked Jun 7 in Engine by lowpolygon (84 points)

1 Answer

+1 vote
answered Jun 8 by kidscancode (11,450 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.