# SetWorldLocation launches Pawn into the air

**URL:** <https://forums.unrealengine.com/t/setworldlocation-launches-pawn-into-the-air/376190>\
**Category:** World Creation\
**Tags:** physics-stability, teleport, default-pawn, unreal-engine, Physics, question\
**Created:** [November 13, 2016, 7:04pm UTC](https://forums.unrealengine.com/t/setworldlocation-launches-pawn-into-the-air/376190 "2016-11-13T19:04:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChrisBe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ChrisBe](https://forums.unrealengine.com/u/ChrisBe)\
**Post date:** [November 13, 2016, 7:04pm UTC](https://forums.unrealengine.com/t/setworldlocation-launches-pawn-into-the-air/376190/1 "2016-11-13T19:04:21Z")

</div>

Hello everybody,

I have been struggling with issue for a while:

I am doing a basic teleport system. The ideal case is that when the pawn overlaps with one of the portals, it would re-appear in the location of the other one.

I am using a Pawn blueprint derived from **DefaultPawn**. **The issue is** that when the pawn goes into either portal, it gets teleported to the other one **but** it is then launched into the air (a.k.a gains an immense amount of velocity). happens even if the destination location is any arbitrary location.

I tried different scenarios trying to isolate the problem. I noticed that the Pawn would teleport fine to any arbitrary location **if** I triggered it to teleport out of the OnComponentBeginOverlap execution.

I have been playing with the physics settings of all the objects involved and nothing seems to be solving my issue.

Any thoughts you may have on would be greatly appreciated.

P.S: is the basic teleport logic

 ![114757-ue4_teleport_issue.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/6/1/0617b23d0192b1e752d44154c343581e62b273fa.png)

Thanks,

Christian  
[www.chrisbegames.com](http://www.chrisbegames.com)

---

<div class="post-metadata">

**Author:** ![CrimsonHawk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CrimsonHawk](https://forums.unrealengine.com/u/CrimsonHawk)\
**Post date:** [November 15, 2016, 1:50am UTC](https://forums.unrealengine.com/t/setworldlocation-launches-pawn-into-the-air/376190/2 "2016-11-15T01:50:57Z")

</div>

My guess would be that you shouldn’t set the world position of the CollisionComponent, but of the (Default?)SceneRoot component.  
Everything else seems fine.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_650f1d25](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_650f1d25](https://forums.unrealengine.com/u/anonymous_user_650f1d25)\
**Post date:** [November 15, 2016, 8:42am UTC](https://forums.unrealengine.com/t/setworldlocation-launches-pawn-into-the-air/376190/3 "2016-11-15T08:42:20Z")

</div>

I’d agree with CrimsonHawk. I’ve ran into some strange issues trying to muck with the capsule component too.

I was using a teleport in one of my levels, and I did it by doing:

- Cast to “My Character\_BP” (or whatever)
- drag off of “As My character\_BP” on the Cast to node, let go and type in SetActorLocation
- specify the “New Location” (in world coords) on the SetActorLocation node

That’s prolly one of a thousand ways to do it. hehe

---

<div class="post-metadata">

**Author:** ![ChrisBe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ChrisBe](https://forums.unrealengine.com/u/ChrisBe)\
**Post date:** [November 17, 2016, 6:25pm UTC](https://forums.unrealengine.com/t/setworldlocation-launches-pawn-into-the-air/376190/4 "2016-11-17T18:25:21Z")

</div>

Hey all,

Thanks for your attention on .

CrimsonHawk, I thought that could be the issue but the CollisionComponent is the root of the Blueprint. I tried to change it but it is inherited from the default pawn.

, I tried several different “SetLocation” nodes and still had the issue

The weird part as I mentioned in the original post is that setting the location in any other context (i.e Another function, BeginPlay execution,etc) works fine

---

<div class="post-metadata">

**Author:** ![ChrisBe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ChrisBe](https://forums.unrealengine.com/u/ChrisBe)\
**Post date:** [November 17, 2016, 6:29pm UTC](https://forums.unrealengine.com/t/setworldlocation-launches-pawn-into-the-air/376190/5 "2016-11-17T18:29:00Z")

</div>

Hey everybody,

So I managed to temporarily fix issue by using a different approach:

Teleportation is now handled by the **Pawn** instead of the portal. When OnComponentBeginOverlap is hit, I set a flag of the Pawn that would execute the teleportation code in the next tick. It is a workaround but works as intended.

My guess is that there is some sort of code or setting in the default pawn that is causing problem. I tried creating a new pawn and it worked perfectly with the blueprint I posted before. I may add a screenshot of the solution in a near future.

Thanks again,

Christian
