During picking ignore backfaces and pick through them


#1

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!


#2

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


#3

That would make my co-worker happy!


#4

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


#5

Will do thanks!


#6

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


#7

Thank you sir!