I searched for a day but I could only find information about getting mesh that ray hit.
The gurus here showed me this previously: playground
Insert this line at 76 and check out the console:
I hope this helps!
edit: apologies, forgot this. it comes from this documentation Raycasts - Babylon.js Documentation