I searched for a day but I could only find information about getting mesh that ray hit.
Hi there,
Try this.
The gurus here showed me this previously: playground
Insert this line at 76 and check out the console:
console.log(hit.pickedPoint);
I hope this helps!
edit: apologies, forgot this. it comes from this documentation https://doc.babylonjs.com/babylon101/raycasts#detect-the-first-mesh-touched-by-the-ray
1 Like