| minDepth | Only include objects with a Z coordinate (depth) greater than this value. |
| maxDepth | Only include objects with a Z coordinate (depth) less than this value. |
| origin | The point in 2D space where the ray originates. |
| direction | Vector representing the direction of the ray. |
| results | Array to receive results. |
| distance | Maximum distance over which to cast the ray. |
| layerMask | Filter to check objects only on specific layers. |
Casts a ray into the scene.