WebXR (replace controllers to default hands)

Hello to the creators of Babylon!

The documentation well describes how to interact with controllers, buttons, events, etc.It all works very well!

The only thing I would like to know is if there is some kind of standard hand mesh (not HAND TRACKING) with standard positions (fist, index finger, relaxed hand) and if there is, how can I replace my controllers with this mesh.

And another question. Can I change my controllers at will. For example, if I have oculus controllers, can I voluntarily change them to controllers like pico?

Do I need to use this repo somehow?

1 Like

I do not think we provide default hands meshes to replace the controllers.

Adding @RaananW who is way more versed than me in WebXR :slight_smile:

Also @PirateJC as it might end up being a nice doc upgrade.

2 Likes

Sadly - not yet. We have an issue tracked here - WebXR option to display hand mesh instead of controllers · Issue #9089 · BabylonJS/Babylon.js (github.com)

You can force a controller to load with a parameter in the options (forceControllerProfile). changing on demand will require a bit more work on your side. The init function is this:

Babylon.js/webXRInputSource.ts at master · BabylonJS/Babylon.js (github.com)

1 Like