We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59e7f02 commit 5376523Copy full SHA for 5376523
Assets/MixedRealityToolkit/Utilities/MathUtilities.cs
@@ -532,8 +532,7 @@ public static bool IsInFOVCone(Transform cone,
532
Vector3 point,
533
float fieldOfView,
534
float minDist = 0.05f,
535
- float maxDist = 100f,
536
- bool debug = false)
+ float maxDist = 100f)
537
{
538
var dirToPoint = point - cone.position;
539
@@ -544,10 +543,6 @@ public static bool IsInFOVCone(Transform cone,
544
543
}
545
546
var degrees = Mathf.Acos(pointDist / dirToPoint.magnitude) * Mathf.Rad2Deg;
547
- if (debug)
548
- {
549
- Debug.Log($"degrees: {degrees} fov: {fieldOfView} pointDist: {pointDist}");
550
- }
551
return degrees < fieldOfView * 0.5f;
552
553
0 commit comments