Mesh picking by ray doesnt always work/ is not reliable

I am using the code from the “Fun with picking meshes” .
Somehow the picking seems to be unreliable and doesnot always work.
It seems especially clicking on the top of cubes doesnt seem to work as it should?

Or do I have a different flaw in the code?

picking is at Line 249

Thanks! Werner.

visibility does not prevent picking or interaction, only rendering. To fully disable the cube on picking you could use setEnable


Thank you!
argh, I almost solved it on my own ;).
I already had the feeling that setting the visibility was the issue.


1 Like