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 1b006a3 commit 7600be9Copy full SHA for 7600be9
com.unity.ml-agents/Runtime/Sensors/RayPerceptionSensor.cs
@@ -431,7 +431,7 @@ out DebugDisplayInfo.RayInfo debugRayOut
431
432
// Do the cast and assign the hit information for each detectable tag.
433
var castHit = false;
434
- var hitFraction = float.NaN;
+ var hitFraction = 1.0f;
435
GameObject hitObject = null;
436
437
if (input.CastType == RayPerceptionCastType.Cast3D)
0 commit comments