API > PhysicRay > maxDistance PhysicRay.maxDistance⚓︎ Name Type maxDistance number Description⚓︎ The max distance the ray should check for collisions. Default Mathf.Infinity.