So i'm trying to apply trig/calc now to game development...
I'm confused about the difference between acos and atan2 when finding the angle between two vectors
Example
local theta = math.acos(a.Unit:Dot(b.Unit))
So i'm trying to apply trig/calc now to game development...
I'm confused about the difference between acos and atan2 when finding the angle between two vectors
Example
local theta = math.acos(a.Unit:Dot(b.Unit))
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
cos ? = a·b / |a|·|b| ... Is that for just two vectors starting from the same point? What about the angle between two distance point vectors?
Gun Example = math.atan2(targetY-gunY, targetX-gunX) -- I wrote that assuming an answer to my question about two points? anyone here good with math..