# WEBXR TELEPORTATION defaultTargetMeshOptions

**URL:** <https://forum.babylonjs.com/t/webxr-teleportation-defaulttargetmeshoptions/44190>\
**Category:** Questions\
**Created:** [September 16, 2023, 8:07am UTC](https://forum.babylonjs.com/t/webxr-teleportation-defaulttargetmeshoptions/44190 "2023-09-16T08:07:26Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![lxq100](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/lxq100/32/43689_2.png) [@lxq100](https://forum.babylonjs.com/u/lxq100)\
**Post date:** [September 16, 2023, 8:07am UTC](https://forum.babylonjs.com/t/webxr-teleportation-defaulttargetmeshoptions/44190/1 "2023-09-16T08:07:26Z")

</div>

defaultTargetMeshOptions can set teleportationFillColor  
How to set up a model instead of a transport style?  
Looking forward to the answer!

---

<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:** [September 18, 2023, 9:24am UTC](https://forum.babylonjs.com/t/webxr-teleportation-defaulttargetmeshoptions/44190/2 "2023-09-18T09:24:53Z")

</div>

If you are asking how to pass a different model, you need to use `teleportationTargetMesh` instead of passing options to configure the default mesh.  
If you want to support rotation as well (while teleporting), you will also need to have a child mesh called `rotationCone` .

---

<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:** [September 18, 2023, 9:42am UTC](https://forum.babylonjs.com/t/webxr-teleportation-defaulttargetmeshoptions/44190/6 "2023-09-18T09:42:56Z")

</div>

I am not quite sure what am I seeing. This is the default teleportation model. It seems to be mis-aligned, which might suggest the model you are trying to teleport to is not straight.  
You haven’t actually explained what is wrong, so it is hard to answer.

---

<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:** [September 18, 2023, 10:30am UTC](https://forum.babylonjs.com/t/webxr-teleportation-defaulttargetmeshoptions/44190/8 "2023-09-18T10:30:19Z")

</div>

would be great if you shared a reproduction. Playground?

---

<div class="post-metadata">

**Author:** ![lxq100](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/lxq100/32/43689_2.png) [@lxq100](https://forum.babylonjs.com/u/lxq100)\
**Post date:** [September 19, 2023, 1:21am UTC](https://forum.babylonjs.com/t/webxr-teleportation-defaulttargetmeshoptions/44190/9 "2023-09-19T01:21:25Z")

</div>

thanks!  
If you are asking how to pass a different model, you need to use `teleportationTargetMesh` instead of passing options to configure the default mesh.  
The answer is I need it!

---

<div class="post-metadata">

**Author:** ![lxq100](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/lxq100/32/43689_2.png) [@lxq100](https://forum.babylonjs.com/u/lxq100)\
**Post date:** [September 25, 2023, 6:21am UTC](https://forum.babylonjs.com/t/webxr-teleportation-defaulttargetmeshoptions/44190/10 "2023-09-25T06:21:15Z")

</div>

I customized the model I made to replace the default teleportation model.  
When the controller is transferred, the line of the controller is thickened and a small ball is displayed. I can reproduce it in PG.  
Please help me find out which configuration has the problem. It is very grateful!  
PG:[https://playground.babylonjs.com/#USWKXU#1](https://playground.babylonjs.com/#USWKXU#1)

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/a/0/a01ece5c7a7e20a0bd4e2aae7a954bfd1be21096.jpeg)

---

<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:** [September 25, 2023, 11:59am UTC](https://forum.babylonjs.com/t/webxr-teleportation-defaulttargetmeshoptions/44190/11 "2023-09-25T11:59:46Z")

</div>

Here, this will work - [SET teleportationTargetMesh | Babylon.js Playground (babylonjs.com)](https://playground.babylonjs.com/#USWKXU#6)

You can pass the options before initializing the XR helper. What you did was enable and feature every time a controller was added, which caused a few issues.

---

<div class="post-metadata">

**Author:** ![lxq100](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/lxq100/32/43689_2.png) [@lxq100](https://forum.babylonjs.com/u/lxq100)\
**Post date:** [September 26, 2023, 6:26am UTC](https://forum.babylonjs.com/t/webxr-teleportation-defaulttargetmeshoptions/44190/12 "2023-09-26T06:26:50Z")

</div>

PG:

> **[Babylon.js Playground](https://playground.babylonjs.com/#USWKXU%236)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

is ok！

I need to create a teleportation to set some different parameters.  
Teleportation was not created in PG#14 is OK!  
PG:

> **[Babylon.js Playground](https://playground.babylonjs.com/#USWKXU%2314)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

but PG#11 create teleportation is bad!  
PG:

> **[Babylon.js Playground](https://playground.babylonjs.com/#USWKXU%2311)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

I really need to create a teleportation to set some different parameters  
For example, setting parabolicCheckRadius！

Please help me with this problem, thank you very much!

---

<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:** [September 26, 2023, 9:25am UTC](https://forum.babylonjs.com/t/webxr-teleportation-defaulttargetmeshoptions/44190/13 "2023-09-26T09:25:14Z")

</div>

this has the same issue the first playground had - you are re-enabling the feature instead of using the existing one. when re-enabling the feature you practically reset its parameters. Any reason for enabling an already-enabled feature? If you want to use the feature, use `xr.teleportation`
