During picking ignore backfaces and pick through them

Is there a better way to pick meshes while ignoring backfaces? I.e if I pick a backface ignore it and select through it to get the actual mesh I was trying to select. We have a ceiling that we want to be only visible from below and only selectable from below.

This thread has a workaround : Dragndrop on a back side orientation mesh - Questions & Answers - HTML5 Game Devs Forum
But we were wondering if there was a better way.

Thanks!

We do not have the distinction between front and back faces for now (so the workaround is fine)

Just wondering if we should add it to the framework directly

That would make my co-worker happy!

Feel free to create an issue for me on the repo. I’ll add it next week :slight_smile:

Will do thanks!

Done!
https://doc.babylonjs.com/babylon101/raycasts#triangle-predicate

3 Likes

Thank you sir!

1 Like