A 2D sprite has an x/y location, x/y direction, and x/y velocity.
During each update call, its location = (location + (direction * velocity)).
This enables it to travel in any and all directions at varying speeds.
Using this information, how would you find the angle (in degrees) between it's current location, and it's next location?


Reply With Quote
