Thank you for all your kind replies - trying them all out now. I can't get Floyd's one working properly because I am giving it bad data.
What is the cleanest, most consistent way to point one thing at another to get an angle between 0 and 360?
It seems to me atan2 returns some strange values sometimes. I'm trying to get atan2 working with floyds at the moment.
Will try all your suggestions though, and thanks!
What is the cleanest, most consistent way to point one thing at another to get an angle between 0 and 360?
It seems to me atan2 returns some strange values sometimes. I'm trying to get atan2 working with floyds at the moment.
Will try all your suggestions though, and thanks!