SetWorldLocation launches Pawn into the air

ChrisBe
Sun, 13 Nov 2016 19:04:21 +0000
World Creation

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

Thanks,

Christian
www.chrisbegames.com

5 posts - 1 participant