0

I want to have an image move towards another image in a straight line. I originally thought that I could calculate the angle of the path it needs to take, rotate it that way, and then move forward. Though I do not know how to rotate an image, and I do not know how to make it move forward relative to its rotation. I have found a formula to calculate the angle, though. It is the difference in x value (Calling this A), divided by the distance in y value (Calling this B), multiplied by arctan. Or arctan(a/b)

Rabbid76
  • 177,135
  • 25
  • 101
  • 146
ZackYodaz
  • 1
  • 1

0 Answers0