Measuring how close two angles are
💬 General•Updated 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.