# VR template teleporting me to floor

**URL:** <https://forums.unrealengine.com/t/vr-template-teleporting-me-to-floor/405807>\
**Category:** XR Development\
**Tags:** template-project, unreal-engine, question\
**Created:** [September 30, 2017, 6:00am UTC](https://forums.unrealengine.com/t/vr-template-teleporting-me-to-floor/405807 "2017-09-30T06:00:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![migero](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@migero](https://forums.unrealengine.com/u/migero)\
**Post date:** [September 30, 2017, 6:00am UTC](https://forums.unrealengine.com/t/vr-template-teleporting-me-to-floor/405807/1 "2017-09-30T06:00:08Z")

</div>

using HMD Locomotion Map after using teleport anywhere camera is moved to spot but Z is set to floor

---

<div class="post-metadata">

**Author:** ![jakedowns](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jakedowns](https://forums.unrealengine.com/u/jakedowns)\
**Post date:** [October 16, 2017, 8:04pm UTC](https://forums.unrealengine.com/t/vr-template-teleporting-me-to-floor/405807/2 "2017-10-16T20:04:14Z")

</div>

had the same issue, here’s how I fixed it:

- opened MotionControllerPawn \> Event Graph in BP Editor
- located “Handle Teleportation”
- piped GetDefaultPlayerHeight into the Z input of a new Make Vector
- added that vector to the GetTeleportDestination Location Output Vector

[![CloudApp](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/2/b/a2b6f4153a57818007d3992f0bdab62a1e4d6c06.png "Image 2017-10-16 at 4.02.35 PM") ](https://cl.ly/5zupxGGY)

---

<div class="post-metadata">

**Author:** ![JonathanArmstrong](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JonathanArmstrong](https://forums.unrealengine.com/u/JonathanArmstrong)\
**Post date:** [August 26, 2018, 7:58pm UTC](https://forums.unrealengine.com/t/vr-template-teleporting-me-to-floor/405807/3 "2018-08-26T19:58:53Z")

</div>

This only made the player location to spawn at the zenith of the map, far away from anything else. The location was high in the sky and there was no way to teleport back to the navigable area.

---

<div class="post-metadata">

**Author:** ![JonathanArmstrong](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JonathanArmstrong](https://forums.unrealengine.com/u/JonathanArmstrong)\
**Post date:** [August 26, 2018, 8:47pm UTC](https://forums.unrealengine.com/t/vr-template-teleporting-me-to-floor/405807/4 "2018-08-26T20:47:51Z")

</div>

This happened when my old project was created in UE v4.15, and I had converted it to UE v4.2.

The only solution I’ve found for this was to create a new VR project (Epic Launcher\>Engine Version\>Launch\>New Project (tab)\>Virtual Reality\>Create Project). Now Go to the content folder of that new project, in windows: rename VirtualRealityBP to VirtualRealityBP\_02 to your original content folder. Re-open your project and map. Rename the existing Motion Controller Pawn (in VirtualRealityBP) to “Motion Controller Pawn Old.” Drag and drop the new Motion Controller Pawn from VirtualRealityBP\_02 to the Blueprints Folder of VirtualRealityBP\>copy. This will rename the Motion Controller Pawn to “Motion Controller Pawn 2.” Drag this into your level. Go to MotionControllerPawn\_2\>details\>Pawn\>Auto Possess Player = Player 0 (to attach the controller to the camera, again). Leave the VirtualRealityBP\_02 folder in your project’s content folder.

![251658-unreal-motioncontrollerpawn-floorspawn-fix-02.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/3/a/f3aeacd061918a827c7248d5163977c3df77df92.png)
