💬

Community answer

Collected from the ACE community Discord archive around 2024-02-11. It may be informal or outdated — anyone can edit this page to improve it. Original discussion

Measuring how close two angles are

💬 GeneralUpdated 2 days ago•0 views
Take the dot product of the two angles' forward vectors: ang1:getForward():dot(ang2:getForward()) - it ranges -1 to 1 (-1 perfectly opposite, 0 perpendicular, 1…

What's the math for getting how close my eye angle is to another angle (e.g. is someone facing away)

Take the dot product of the two angles' forward vectors: ang1:getForward():dot(ang2:getForward()) - it ranges -1 to 1 (-1 perfectly opposite, 0 perpendicular, 1 same direction). Compare the result to thresholds.

Was this article helpful?

See More

Discussion(0)

No comments yet. Be the first to ask a question!

Have a question? Sign in to join the discussion.