How do I find the angle required to point to another object?
- by Ginamin
I am making an air combat game, where you can fly a ship in a 3D space. There is an opponent that flies around as well. When the opponent is not on screen, I want to display an arrow pointing in the direction the user should turn, as such:
So, I took the camera location and the oppenent location and did this:
double newDirection =
…