Webxr Pointer hit

Hi, I am trying to add tooltip on hover on WebXR project, and and I am trying to get the pointer hit point, but cant manage to find how.
I tried using the pointerID to get the controller with pointerSelection.getXRControllerByPointerId, and then getWorldPointerRayToRef to get the pointer ray but it doesn’t seem to work. For some reason when trying to pick it kinda pick above the camera. any suggestions?

Would you be able to show the code you are using? Pointer selection should work in XR just like it works on the desktop