Skip to content

Commit 7600be9

Browse files
surfnerdChris Elion
andcommitted
Update com.unity.ml-agents/Runtime/Sensors/RayPerceptionSensor.cs
Co-authored-by: Chris Elion <chris.elion@unity3d.com>
1 parent 1b006a3 commit 7600be9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

com.unity.ml-agents/Runtime/Sensors/RayPerceptionSensor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ out DebugDisplayInfo.RayInfo debugRayOut
431431

432432
// Do the cast and assign the hit information for each detectable tag.
433433
var castHit = false;
434-
var hitFraction = float.NaN;
434+
var hitFraction = 1.0f;
435435
GameObject hitObject = null;
436436

437437
if (input.CastType == RayPerceptionCastType.Cast3D)

0 commit comments

Comments
 (0)