Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Bob Dolan | |
Old Version | Published before Godot 3 was released. |
I am trying to rotate my Sprite node in the direction determined by a pair of start and finish positions. I have read up on the supported functions for this and I understand the math but I cannot seem to get this working correctly so I thought I would ask here since I feel I am missing something obvious.
Basically I need something like this:
func RotatePlayer(start, finish):
#calculate angle
set_rot(angle)