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 ?

in Engine by (173 points)

1 Answer

0 votes
by (20,897 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.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.