Hey all,
I'm having a lot of trouble with a little project I'm working on.
I'd like to choose a compass bearing (0 - 360) and then move an object in that direction (using X and Y coordinates).
For the first quadrant, I just use trig (tan) to calculate it. But in all the other ones I'm having weird issues. (Tan is the best option because you can calculate the gradient but tan is only positive in two quadrants)
Any tips to point me in the right direction?
Bookmarks