Skip to content

Commit 5376523

Browse files
author
Julia Schwarz
committed
remove debug code
1 parent 59e7f02 commit 5376523

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

Assets/MixedRealityToolkit/Utilities/MathUtilities.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -532,8 +532,7 @@ public static bool IsInFOVCone(Transform cone,
532532
Vector3 point,
533533
float fieldOfView,
534534
float minDist = 0.05f,
535-
float maxDist = 100f,
536-
bool debug = false)
535+
float maxDist = 100f)
537536
{
538537
var dirToPoint = point - cone.position;
539538

@@ -544,10 +543,6 @@ public static bool IsInFOVCone(Transform cone,
544543
}
545544

546545
var degrees = Mathf.Acos(pointDist / dirToPoint.magnitude) * Mathf.Rad2Deg;
547-
if (debug)
548-
{
549-
Debug.Log($"degrees: {degrees} fov: {fieldOfView} pointDist: {pointDist}");
550-
}
551546
return degrees < fieldOfView * 0.5f;
552547
}
553548

0 commit comments

Comments
 (0)