How to pick/select meshes with a tolerance (for touch devices)?


I’m trying to pick meshes with a tolerance. At the moment I’m converting a screen point into a Babylon world point and then turning that point into a ray and then using ray.IntersectsMesh for selection.
On touch devices its quite easy to miss click with this setup. I want to be able to select with a user’s whole finger and not just a point.

Thank you

  • Brian

the best option is probably to launch several rays. Let say one on the left, one on the right same for top and bottom around the clicked point (with let’s say a distance of 5 pixels?)

That did the trick. Thanks!