Advertisement
otorp2

get forward

Dec 26th, 2016
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. func get_forward():
  2. return Vector2(cos(get_rot() + PI/2.0), sin(get_rot() + PI/2.0)))
  3. Where forward is "up"
  4. (Originally, 0 degree angle is towards the right)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement