WebXRNearInteraction: TypeError subMesh.projectToRef is undefined

We’re using the tree-shaking setup with Babylon, and The line above throws TypeError subMesh.projectToRef is undefined when using hand tracking with the TouchHolographicButton.

I can resolve by importing the submesh projection module for its side effects

import "@babylonjs/core/Meshes/subMesh.project";

Perhaps WebXRNearInteraction should be importing this if it requires it, though

Yes it should. I’ll add it, thanks a lot!

1 Like

This will be in the next nightly

1 Like