Hi there, I’m trying to figure out how to virtually “grab” and “throw” an object in VR.
There is this guide at webvr_helper#grab: Use the WebVR experience helper - Babylon.js Documentation
But that playground example (Babylon.js Playground) doesn’t work for me on Oculus Quest. The grabbing gesture doesn’t pick up the cubes.
I figured it was because the example is using the older webVR api and I need to update the playground example to WebXR api, however I’m having trouble finding an XR equivalent for the onNewMeshSelected observable, where can I find that?:
VRHelper.onNewMeshSelected.add(function(mesh) {
selectedMesh = mesh;
});
VRHelper.onSelectedMeshUnselected.add(function() {
selectedMesh = null;
});
Or is there a different suggested technique for getting an array of meshes (or mesh names) that my controller hand is near or intersecting?