Well, I've done the vec_set(),vec_sub(),vec_to_angle() thing before, but I've never really figured out quite how that works. I wanted to make a function that doesn't compute values that I won't need, and one where I know how it works so that I can take advantage of that in different possible applications. I was thinking like this when I did the first write:



as you can see, I'm using basic trig to find the angles. Or so I thought. Maybe I need to take a different approach?


Code:
void main()
{
    cout << "I am MrCode,";
    cout << "hear me roar!";
    system("PAUSE");
}