Make mesh follow hand in VR

Hello, I read about the handConstraintBehaviour and I am wondering if this could be a way to make a mesh follow my hands in webXR. However, I can’t get it to work. Here is a playground with the code that I am using. I tried it with and without a transform node but without success.

cc @RaananW

Here you go :slight_smile:
Test of handConstraintBehaviour | Babylon.js Playground (babylonjs.com)

You need to pass the base experience and not the default experience helper in order for that to work.
I’ll submit a PR to better log this. In TypeScript you would fail during compile time.

3 Likes