# Can't teleport to meshes edges

**URL:** <https://forums.unrealengine.com/t/cant-teleport-to-meshes-edges/1168240>\
**Category:** XR Development\
**Tags:** teleport, unreal-engine, oculus-vr, question, Blueprint\
**Created:** [May 17, 2023, 2:47am UTC](https://forums.unrealengine.com/t/cant-teleport-to-meshes-edges/1168240 "2023-05-17T02:47:28Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![hasan-ahmed](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hasan-ahmed](https://forums.unrealengine.com/u/hasan-ahmed)\
**Post date:** [May 17, 2023, 2:47am UTC](https://forums.unrealengine.com/t/cant-teleport-to-meshes-edges/1168240/1 "2023-05-17T02:47:28Z")

</div>

Hi,  
does anyone know why I can’t teleport to the edges of meshes that are put next to each other if I changed the VR Pawn Class from “Pawn” to “Character”?  
\*I can teleport to the outer edges without any problems  
\*I have this issue in 5.0.3 and 5.1

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/f/f/1ffbe76e6bcd74c9000b5430178c277ee5e17260.png)

---

<div class="post-metadata">

**Author:** ![EliasWick](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/eliaswick/32/1175208_2.png) [@EliasWick](https://forums.unrealengine.com/u/EliasWick)\
**Post date:** [May 17, 2023, 4:26pm UTC](https://forums.unrealengine.com/t/cant-teleport-to-meshes-edges/1168240/2 "2023-05-17T16:26:20Z")

</div>

I think you will have to be more specific. How do you teleport and why do you need to teleport?

---

<div class="post-metadata">

**Author:** ![Milisours](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Milisours](https://forums.unrealengine.com/u/Milisours)\
**Post date:** [May 18, 2023, 12:43am UTC](https://forums.unrealengine.com/t/cant-teleport-to-meshes-edges/1168240/3 "2023-05-18T00:43:26Z")

</div>

The Character class derives from the Pawn class, so it inherits everything and adds some more. One of the things it adds is a Capsule Component (aka Collision Cylinder).

So the collision on the capsule is likely affecting you, in which case you can change the height and radius of the capsule in the details panel.

---

<div class="post-metadata">

**Author:** ![hasan-ahmed](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hasan-ahmed](https://forums.unrealengine.com/u/hasan-ahmed)\
**Post date:** [May 18, 2023, 5:10am UTC](https://forums.unrealengine.com/t/cant-teleport-to-meshes-edges/1168240/4 "2023-05-18T05:10:54Z")

</div>

I’m using the default VR Template teleportation system. I need it so that I have smooth locomotion and teleport when moving around the level.

---

<div class="post-metadata">

**Author:** ![Ares9323](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ares9323/32/1194521_2.png) [@Ares9323](https://forums.unrealengine.com/u/Ares9323)\
**Post date:** [May 18, 2023, 5:30am UTC](https://forums.unrealengine.com/t/cant-teleport-to-meshes-edges/1168240/5 "2023-05-18T05:30:49Z")

</div>

> [@hasan-ahmed](#):
>
> I’m using the default VR Template teleportation system.

If I remember correctly, the default template uses the navmesh to see if you can teleport in a place or not, you can preview it by clicking the viewport (not while in play) and pressing the P key. If you see a hole in the green it means that the navmesh is not present there.

In case you do and you want to fill these holes, it should be enough to disable the collision of the meshes that are blocking you.

---

<div class="post-metadata">

**Author:** ![hasan-ahmed](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hasan-ahmed](https://forums.unrealengine.com/u/hasan-ahmed)\
**Post date:** [May 18, 2023, 6:17am UTC](https://forums.unrealengine.com/t/cant-teleport-to-meshes-edges/1168240/7 "2023-05-18T06:17:00Z")

</div>

I already have a NavMesh and it covers everything. By disabling the collision, I’m no longer able to teleport to any spot on the mesh which makes things worse. I think the issue is in the VR Pawn, either because of the capsule collision or because of the way the default code calculates the destination spot which collides with the capsule.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/b/d/cbd699cee17e014fbcdea7d1a4f165ed7c28c55c.jpeg)

---

<div class="post-metadata">

**Author:** ![Ares9323](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ares9323/32/1194521_2.png) [@Ares9323](https://forums.unrealengine.com/u/Ares9323)\
**Post date:** [May 18, 2023, 6:38am UTC](https://forums.unrealengine.com/t/cant-teleport-to-meshes-edges/1168240/8 "2023-05-18T06:38:20Z")

</div>

> [@hasan-ahmed](#):
>
> By disabling the collision, I’m no longer able to teleport to any spot on the mesh which makes things worse.

Is it a single mesh? Can you show us the simple collision in the mesh preview? It’s not very clear from your picture which edges are you talking about (at first I thought you were referring to the yellow lines but I think I misunderstood your problem)

---

<div class="post-metadata">

**Author:** ![hasan-ahmed](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hasan-ahmed](https://forums.unrealengine.com/u/hasan-ahmed)\
**Post date:** [May 18, 2023, 7:00am UTC](https://forums.unrealengine.com/t/cant-teleport-to-meshes-edges/1168240/9 "2023-05-18T07:00:34Z")

</div>

I can’t teleport to the marked edges, but I can to the outer ones that have no objects next to them

 ![cbd699cee17e014fbcdea7d1a4f165ed7c28c55c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/d/7/2d7bae03881ac64dac990dd714317aabfc7d42d5.jpeg)

and this is the collision

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/6/5/d652c083d2e424d3d9cfd4eb375ebaeca9b2dfc5.jpeg)

---

<div class="post-metadata">

**Author:** ![Ares9323](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ares9323/32/1194521_2.png) [@Ares9323](https://forums.unrealengine.com/u/Ares9323)\
**Post date:** [May 18, 2023, 7:07am UTC](https://forums.unrealengine.com/t/cant-teleport-to-meshes-edges/1168240/10 "2023-05-18T07:07:24Z")

</div>

Ok, at least I understood correctly, the collision seems fine too.

Would you mind uploading the project here?

I think it should be light enough for the forum to support it (Use zip project, it will automatically remove unnecessary files)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/d/c/3dc3ace98918486df47023a548ce0ac1495c564a.png)

---

<div class="post-metadata">

**Author:** ![hasan-ahmed](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hasan-ahmed](https://forums.unrealengine.com/u/hasan-ahmed)\
**Post date:** [May 18, 2023, 7:17am UTC](https://forums.unrealengine.com/t/cant-teleport-to-meshes-edges/1168240/11 "2023-05-18T07:17:43Z")

</div>

The file:  
[VRTemplate2.zip](https://forums.unrealengine.com/uploads/short-url/7JC29yYWZjpJoeVHmlTXkOBRQb.zip) (12.9 MB)

Also, I was playing with the teleport code and by deleting the subtracting node that subtracts the projected location by the Nav cell height and replacing it with an addition node with a value of \>55, it seem to fix the issue. it would be great if you could take a look 🤍

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/a/c/6ac9ac93332935c1013a4fb8417e859d86060ee1.png)

---

<div class="post-metadata">

**Author:** ![hasan-ahmed](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hasan-ahmed](https://forums.unrealengine.com/u/hasan-ahmed)\
**Post date:** [May 18, 2023, 7:50am UTC](https://forums.unrealengine.com/t/cant-teleport-to-meshes-edges/1168240/12 "2023-05-18T07:50:49Z")

</div>

So far, I fixed it by deleting the Subtracting node and replacing it with an Add node of value \>55 (85 Looks the best). I don’t know if it is the best solution. (Capsule Half Height = 88)  
This also prevented me from falling from the world when teleporting on very thin meshes(e.x. Planes)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/e/d/1ed87f645215a30afa7dcdffd9859a1af39c8f20.png)

---

<div class="post-metadata">

**Author:** ![Ares9323](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ares9323/32/1194521_2.png) [@Ares9323](https://forums.unrealengine.com/u/Ares9323)\
**Post date:** [May 18, 2023, 8:14am UTC](https://forums.unrealengine.com/t/cant-teleport-to-meshes-edges/1168240/13 "2023-05-18T08:14:29Z")

</div>

> [@hasan-ahmed](#):
>
> fixed it by deleting the Subtracting node and replacing it with an Add node of value \>55 (85 Looks the best). I don’t know if it is the best solution.

In this way you are altering the ProjectedTargetLocation, if you draw a debug shape will spawn floating on the ground, if you leave it at -25 it is where it should be:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/e/0/fe09270a9e10815443fb6f3029c5346bc40c1106.jpeg)

This solution works for me:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/2/8/628a27b21a15a57787b8c6a6db90399818415647.png)

---

<div class="post-metadata">

**Author:** ![hasan-ahmed](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hasan-ahmed](https://forums.unrealengine.com/u/hasan-ahmed)\
**Post date:** [May 18, 2023, 8:21am UTC](https://forums.unrealengine.com/t/cant-teleport-to-meshes-edges/1168240/14 "2023-05-18T08:21:16Z")

</div>

I’ll try that. Thanks a lot 🤍

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [June 17, 2023, 8:21am UTC](https://forums.unrealengine.com/t/cant-teleport-to-meshes-edges/1168240/15 "2023-06-17T08:21:42Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
