From 63f71bf67203d0443d1f58cbb5e5b5237705688c Mon Sep 17 00:00:00 2001 From: aparajit-pratap Date: Sun, 25 Feb 2024 19:16:57 -0500 Subject: [PATCH] Update Ray.cs --- Elements/src/Geometry/Ray.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Elements/src/Geometry/Ray.cs b/Elements/src/Geometry/Ray.cs index 4e9989c6b..8db52927f 100644 --- a/Elements/src/Geometry/Ray.cs +++ b/Elements/src/Geometry/Ray.cs @@ -344,7 +344,7 @@ public bool Intersects(Ray ray, out Vector3 result, out RayIntersectionResult in var valid = ignoreRayDirection || t1 >= 0 && t2 >= 0; intersectionResult = valid ? RayIntersectionResult.Intersect : RayIntersectionResult.None; result = valid ? a : default; - return valid; + return result; } intersectionResult = RayIntersectionResult.None; @@ -446,4 +446,4 @@ internal static Ray GetTestRayInPlane(Vector3 origin, Vector3 normal) return new Ray(origin, d); } } -} \ No newline at end of file +}