Posted 29 May 2008 - 01:16 PM
I am making a game in XNA that involves missiles pointing in the direction of the object they are chasing. I know how to make it move at the right speed, but I cannot make it face the right direction. How can I convert a ratio of coordinates to a radian number?
For example: If I had a missile at 10, 10 and was aiming at 40, 100; how would I make the missile point at 40, 100?
No pessimist ever discovered the secrets of the stars, or sailed to an uncharted land.