# Prevent camera lag when teleporting pawn ?

**URL:** <https://forums.unrealengine.com/t/prevent-camera-lag-when-teleporting-pawn/407293>\
**Category:** Community & Industry Discussion\
**Tags:** teleport, unreal-engine, question\
**Created:** [October 18, 2017, 5:19am UTC](https://forums.unrealengine.com/t/prevent-camera-lag-when-teleporting-pawn/407293 "2017-10-18T05:19:00Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Genova](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Genova](https://forums.unrealengine.com/u/Genova)\
**Post date:** [October 18, 2017, 5:19am UTC](https://forums.unrealengine.com/t/prevent-camera-lag-when-teleporting-pawn/407293/1 "2017-10-18T05:19:00Z")

</div>

Hello,

I turned camera lag ON for when my pawn move around, it’s nice and smooth, but I’d like to NOT have it when it teleports (either using Teleport node, or SetActorLocation). Is it possible ?

Since the player can move around still while teleporting, I can’t temporarily turn it off during the teleport.

Thanks

---

<div class="post-metadata">

**Author:** ![Chwindor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Chwindor](https://forums.unrealengine.com/u/Chwindor)\
**Post date:** [October 18, 2017, 5:36am UTC](https://forums.unrealengine.com/t/prevent-camera-lag-when-teleporting-pawn/407293/2 "2017-10-18T05:36:22Z")

</div>

If you use spring arm to control player camera, you can turn off lag in spring arm

---

<div class="post-metadata">

**Author:** ![Genova](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Genova](https://forums.unrealengine.com/u/Genova)\
**Post date:** [October 18, 2017, 3:11pm UTC](https://forums.unrealengine.com/t/prevent-camera-lag-when-teleporting-pawn/407293/3 "2017-10-18T15:11:17Z")

</div>

That’s the thing, I don’t want to turn it off entirely. I just want to teleport the player and keep the current relative position of the camera without it being affected by the teleport.

---

<div class="post-metadata">

**Author:** ![Chwindor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Chwindor](https://forums.unrealengine.com/u/Chwindor)\
**Post date:** [October 18, 2017, 3:20pm UTC](https://forums.unrealengine.com/t/prevent-camera-lag-when-teleporting-pawn/407293/4 "2017-10-18T15:20:46Z")

</div>

Do you mean that you want to keep the camera in origin offset after teleport?  
If so, you can try calculate the delta position of pawn during teleport, and set it back to Spring Arm’s location, spring arm locks itself toward its location.

---

<div class="post-metadata">

**Author:** ![Genova](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Genova](https://forums.unrealengine.com/u/Genova)\
**Post date:** [October 18, 2017, 3:31pm UTC](https://forums.unrealengine.com/t/prevent-camera-lag-when-teleporting-pawn/407293/5 "2017-10-18T15:31:12Z")

</div>

I think I tried that already, but if I change the spring arm or camera location, it messes up it’s relative position with the player. At any point the relative location of the spring arm and camera is returning me 0,0,0 even though it’s lagging behind.  
It kind of suggest that the physical presence of the component never change location relatively to the pawn, but the lag shifting is something else, not accessible.

---

<div class="post-metadata">

**Author:** ![Chwindor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Chwindor](https://forums.unrealengine.com/u/Chwindor)\
**Post date:** [October 18, 2017, 3:49pm UTC](https://forums.unrealengine.com/t/prevent-camera-lag-when-teleporting-pawn/407293/6 "2017-10-18T15:49:12Z")

</div>

Spring arm’s location won’t change during lag, You can try to inherit USpringArmComponent, and then override BlendLocations() and UpdateDesiredArmLocation(). Most of the spring arm lag logic are in UpdateDesiredArmLocation(). Take more control over lag speed may help too.

---

<div class="post-metadata">

**Author:** ![Genova](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Genova](https://forums.unrealengine.com/u/Genova)\
**Post date:** [October 19, 2017, 2:05am UTC](https://forums.unrealengine.com/t/prevent-camera-lag-when-teleporting-pawn/407293/7 "2017-10-19T02:05:49Z")

</div>

That requires code I suppose. Can’t do 😕

---

<div class="post-metadata">

**Author:** ![Chwindor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Chwindor](https://forums.unrealengine.com/u/Chwindor)\
**Post date:** [October 19, 2017, 6:16am UTC](https://forums.unrealengine.com/t/prevent-camera-lag-when-teleporting-pawn/407293/8 "2017-10-19T06:16:24Z")

</div>

Maybe you can try this trick: spawn a dummy actor with spring arm and camera, and make it follow your pawn every tick with relative position as you want.

---

<div class="post-metadata">

**Author:** ![Genova](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Genova](https://forums.unrealengine.com/u/Genova)\
**Post date:** [October 19, 2017, 2:23pm UTC](https://forums.unrealengine.com/t/prevent-camera-lag-when-teleporting-pawn/407293/9 "2017-10-19T14:23:14Z")

</div>

Yes that’s exactly what I ended up doing ! Recreating the camera lag system using an external camera actor that has a Set World Location with a Vinterp on every tick.  
That gave me all the control for a regular teleport.  
Thanks for your time

---

<div class="post-metadata">

**Author:** ![Genova](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Genova](https://forums.unrealengine.com/u/Genova)\
**Post date:** [October 19, 2017, 2:23pm UTC](https://forums.unrealengine.com/t/prevent-camera-lag-when-teleporting-pawn/407293/10 "2017-10-19T14:23:14Z")

</div>

Yes that’s exactly what I ended up doing ! Recreating the camera lag system using an external camera actor that has a Set World Location with a Vinterp on every tick.  
That gave me all the control for a regular teleport.  
Thanks for your time

---

<div class="post-metadata">

**Author:** ![frankiezafe](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/frankiezafe/32/732708_2.png) [@frankiezafe](https://forums.unrealengine.com/u/frankiezafe)\
**Post date:** [May 21, 2025, 9:17am UTC](https://forums.unrealengine.com/t/prevent-camera-lag-when-teleporting-pawn/407293/11 "2025-05-21T09:17:20Z")

</div>

I ran in the same issue and i solved it by totally disabling the lag system on the arm for 2 frames. It seems to be enough for the camera to be positioned correctly.  
Blueprint looks like this:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/d/7/ed7a4cff803058ad3d1dd9a5ffccee1245f9f959.png)  
It’s not perfect but it’s a no brainer and as the teleport location is controlled, the camera has no risk to bump into anything.
