Disable pointerSelection for one motion controller (WebXR)


I can turn off two beams at once using this function: defaultXRExperience.pointerSelection.detach()

How can I turn off the beam on only one controller?

Hi Nawar,

I think you can probably do this by, during initialization, setting the features preferred handedness and then disabling switching. This should cause your preferred hand to be the only one that’s ever allowed to select as it will never switch over to the other one. Hope this helps, and best of luck!


Thanks. This solved my problem perfectly!

1 Like