Meshes from STL files not picked by Ray

Hello !

I do not know if this is intended, but I do not manage to detect a mesh coming from a STL file to be picked by a Ray.

I created a playground, the sphere is picked, not the STL mesh : Babylon.js Playground
Try yourself and check the console !
Does anyone have more information about this behavior ?

Thank you in advance :slight_smile:

ping @PolygonalSun

You are trying to pick before the mesh has been processed for rendering so you should tell it to compute its info first with computeWorldMatrix


Oh great I did not know about this, thank you very much !

1 Like