# Disable pointerSelection for one motion controller (WebXR)

**URL:** <https://forum.babylonjs.com/t/disable-pointerselection-for-one-motion-controller-webxr/25767>\
**Category:** Questions\
**Tags:** webxr\
**Created:** [December 3, 2021, 10:48pm UTC](https://forum.babylonjs.com/t/disable-pointerselection-for-one-motion-controller-webxr/25767 "2021-12-03T22:48:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nawar](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/nawar/32/14923_2.png) [@Nawar](https://forum.babylonjs.com/u/Nawar)\
**Post date:** [December 3, 2021, 10:48pm UTC](https://forum.babylonjs.com/t/disable-pointerselection-for-one-motion-controller-webxr/25767/1 "2021-12-03T22:48:38Z")

</div>

Hello!

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?

---

<div class="post-metadata">

**Author:** ![syntheticmagus](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/syntheticmagus/32/395_2.png) [@syntheticmagus](https://forum.babylonjs.com/u/syntheticmagus)\
**Post date:** [December 3, 2021, 11:05pm UTC](https://forum.babylonjs.com/t/disable-pointerselection-for-one-motion-controller-webxr/25767/2 "2021-12-03T23:05:29Z")

</div>

Hi Nawar,

I think you can probably do this by, during initialization, setting the features [preferred handedness](https://doc.babylonjs.com/typedoc/interfaces/babylon.iwebxrcontrollerpointerselectionoptions#preferredhandedness) and then [disabling switching](https://doc.babylonjs.com/typedoc/interfaces/babylon.iwebxrcontrollerpointerselectionoptions#disableswitchonclick). 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!

---

<div class="post-metadata">

**Author:** ![Nawar](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/nawar/32/14923_2.png) [@Nawar](https://forum.babylonjs.com/u/Nawar)\
**Post date:** [December 4, 2021, 12:13am UTC](https://forum.babylonjs.com/t/disable-pointerselection-for-one-motion-controller-webxr/25767/3 "2021-12-04T00:13:01Z")

</div>

Thanks. This solved my problem perfectly!
