Pick() not working when I try to migrate from babylonjs to babylonjs/core

when I implement scene.pick(scene.pointerX, scene.PointerY) to pick a mesh. it seems not work for me after I migrated to use tree-shaking
Let me briefly explain about my changes code which I forked babylonjs-example And I changed some code to add onPointerUp event handler but it seems not pick mesh(hit = false)

This is my forked repo

FYI: Before I migrated to use tree shaking, it work perfectly to pick mesh and texture coordinate
Thank you in advance

I can fixed it. I forgot to import Culling/ray module

4 Likes

Hey and welcome :slight_smile:
And happy to see you fixed your own question :smiley:

1 Like