# WebXR teleportation disables selection

**URL:** <https://forum.babylonjs.com/t/webxr-teleportation-disables-selection/10882>\
**Category:** Bugs\
**Created:** [May 15, 2020, 4:12pm UTC](https://forum.babylonjs.com/t/webxr-teleportation-disables-selection/10882 "2020-05-15T16:12:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Josip\_Almasi](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/josip_almasi/32/6391_2.png) [@Josip\_Almasi](https://forum.babylonjs.com/u/Josip_Almasi)\
**Post date:** [May 15, 2020, 4:12pm UTC](https://forum.babylonjs.com/t/webxr-teleportation-disables-selection/10882/1 "2020-05-15T16:12:10Z")

</div>

… and does not re-enable it, ever.

Tested with WMR and Oculus Quest, same.

Workaround:  
xrHelper.teleportation.setSelectionFeature(null);

Demo:  
Bug: [https://www.vrspace.org/babylon/xr-teleportation-bug.html](https://www.vrspace.org/babylon/xr-teleportation-bug.html)  
Workaround: [https://www.vrspace.org/babylon/xr-teleportation-workaround.html](https://www.vrspace.org/babylon/xr-teleportation-workaround.html)  
( no loading indicator, give it time to load 60+MB after click )

By the looks of \_setTargetMeshVisibility in [Babylon.js/WebXRControllerTeleportation.ts at master · BabylonJS/Babylon.js · GitHub](https://github.com/BabylonJS/Babylon.js/blob/master/src/XR/features/WebXRControllerTeleportation.ts)  
I’d move that if on top of method, maybe some earlier if/return kicks.

Thanks folks, keep up the good work!

---

<div class="post-metadata">

**Author:** ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)\
**Post date:** [May 15, 2020, 7:03pm UTC](https://forum.babylonjs.com/t/webxr-teleportation-disables-selection/10882/2 "2020-05-15T19:03:06Z")

</div>

Hi, thanks for reporting

I am pretty sure the feature is working correctly, but I guess you found a certain condition in which it doesn’t. Want to provide a playground or a code snippet?

---

<div class="post-metadata">

**Author:** ![Josip\_Almasi](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/josip_almasi/32/6391_2.png) [@Josip\_Almasi](https://forum.babylonjs.com/u/Josip_Almasi)\
**Post date:** [May 19, 2020, 11:38am UTC](https://forum.babylonjs.com/t/webxr-teleportation-disables-selection/10882/3 "2020-05-19T11:38:48Z")

</div>

Hi,

here you go: [Babylon.js Playground](https://playground.babylonjs.com/pg/9K3MRA/revision/60)

---

<div class="post-metadata">

**Author:** ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)\
**Post date:** [May 20, 2020, 7:24am UTC](https://forum.babylonjs.com/t/webxr-teleportation-disables-selection/10882/4 "2020-05-20T07:24:05Z")

</div>

awesome. got it 🙂  
Fixing it right now, will be ready by next playground deployment

---

<div class="post-metadata">

**Author:** ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)\
**Post date:** [May 20, 2020, 7:40am UTC](https://forum.babylonjs.com/t/webxr-teleportation-disables-selection/10882/5 "2020-05-20T07:40:51Z")

</div>

You can track it here - [[XR] Pointer selection motion controller callback not triggered when already attached · Issue #8227 · BabylonJS/Babylon.js · GitHub](https://github.com/BabylonJS/Babylon.js/issues/8227)
