You’re looking for the atan2
function.
Here’s a demo with a duck and some pizza.
I had a conversation in another thread where I discussed some trig basics: Game Math
As always, if you have any questions, just holler!
You’re looking for the atan2
function.
Here’s a demo with a duck and some pizza.
I had a conversation in another thread where I discussed some trig basics: Game Math
As always, if you have any questions, just holler!