PhysicRaymaxDistanceOn this pagePhysicRay.maxDistance NameTypemaxDistancenumber Description The max distance the ray should check for collisions. Default Mathf.Infinity.