You can also pass maxPointerDistance
instead of adjusting the predicate, if you want to limit the ray to only work certain amount of units away from you. This is a part of the options that are passed to the pointer selection option when initializing the XR experience.
2 Likes