# Teleporting instead of Panning, is this a bug or am I missing something?

**URL:** <https://forums.unrealengine.com/t/teleporting-instead-of-panning-is-this-a-bug-or-am-i-missing-something/1978148>\
**Category:** Blueprint\
**Tags:** unreal-engine, question\
**Created:** [August 16, 2024, 7:44am UTC](https://forums.unrealengine.com/t/teleporting-instead-of-panning-is-this-a-bug-or-am-i-missing-something/1978148 "2024-08-16T07:44:42Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![GamerKon2001](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GamerKon2001](https://forums.unrealengine.com/u/GamerKon2001)\
**Post date:** [August 16, 2024, 7:44am UTC](https://forums.unrealengine.com/t/teleporting-instead-of-panning-is-this-a-bug-or-am-i-missing-something/1978148/1 "2024-08-16T07:44:43Z")

</div>

A Bit new to Unreal, from my previous question, i started using Interp To, to try and move the player character. However, while using VInterp to try and move the player forward, it teleports the player the distance instead of panning them the distance smoothly. And if I set the system to use the delta seconds from the Tick event, the teleport doesn’t go the full distance between the two locations.

When i look up a tutorial on how to use, i can only find tutorials for Unreal 4 not 5. And show that the way i have set up the VInterp To should work. However, I’m not sure if there’s been some kind of change between 4 and 5, to make this no longer work?

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/4/3/143adc48dbd55a4ca6016cfdf4104596f5f09e50.png)  
Here is what the blueprints look like.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [August 16, 2024, 8:38am UTC](https://forums.unrealengine.com/t/teleporting-instead-of-panning-is-this-a-bug-or-am-i-missing-something/1978148/2 "2024-08-16T08:38:20Z")

</div>

It must be called every frame - that’s how interpolation works, it relies on the intermediate result. And you need to sample the current location, too:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/3/8/b38fd99a5baa618434d5163e9a4c6152c9dca027.png)

If you’re interested in the _Time_ it takes to go from A-\>B, consider looking into `Timelines`.

* * *

In depth:

> [@Finterp set duration in seconds?](https://forums.unrealengine.com/t/finterp-set-duration-in-seconds/227255/7):
>
> There’s a lot of confusion about what Finterp actually is and does, so I thought I would clarify. The first reply by Jared Therriault is the best answer though. ++++++++++++++++++++++++++++++++++++++ What does Finterp Mean? ++++++++++++++++++++++++++++++++++++++ Finterp stands for Floating point Interpolation. This means it returns a float over time to smoothly transition between a Current and Target value. Notice I said Current value. This means that you need to always be feeding it the cur…

---

<div class="post-metadata">

**Author:** ![GamerKon2001](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GamerKon2001](https://forums.unrealengine.com/u/GamerKon2001)\
**Post date:** [August 16, 2024, 9:11am UTC](https://forums.unrealengine.com/t/teleporting-instead-of-panning-is-this-a-bug-or-am-i-missing-something/1978148/3 "2024-08-16T09:11:09Z")

</div>

Thanks for the suggestion, however, it doesn’t really fix the issue I am experiencing. The Delta Seconds I am using are taken from the `Event Tick` so it is using every frame. However, whenever that is plugged into the system The `VInterp To` doesn’t go the full distance to the Target.

I have updated it to take the Player’s active location. However, the player still teleports between the Current and target distances. And with what you have sent, and videos showing Interp, Says that it should smoothly Transition not 1 frame teleport. Which it does do, even with Event Tick’s Delta Time.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/4/8/348a8fb615348975e008e1a2aa91f54daa3bee56.png)  
Just to quickly explain, the player should be able to press a key to move forward, to a present location, and then another to return to their base position. There already is a similar situation that functions wonderfully with `Finterp To`

So I don’t know if I’m unaware if `VInterp To` has been changed, but from my understanding it should work the same as `FInterp To`

Edit: Just a quick edit in case I misunderstood what you first said, i have also hooked it up to the `Event Tick` and experienced the same issue, with it suddenly teleporting first Tick.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [August 16, 2024, 9:21am UTC](https://forums.unrealengine.com/t/teleporting-instead-of-panning-is-this-a-bug-or-am-i-missing-something/1978148/4 "2024-08-16T09:21:47Z")

</div>

Try it the exact way I suggested. Nothing has changed. `fInterpTo` works the same as `vInterpTo`

* * *

> the player should be able to press a key to move forward, to a present location, and then another to return to their base position.

Player input should open a `Gate` for `Tick` to interpolate results using delta time.

> Just a quick edit in case I misunderstood what you first said, i have also hooked it up to the `Event Tick` and experienced the same issue, with it suddenly teleporting first Tick.

Sounds like you manually punched in delta which is _time between frames_ - 50 makes absolutely no sense whatsoever in this contenxt. Use this for now:

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/7/5/775401f9cac738947e17a4877b1d363e876a6e4b.png)

And update the script on Tick.

* * *

Consider the following:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/a/6/8a6672696577dc91891e6b8572379c18c22bfe25.jpeg)

Here, the `Gate` is optional but I assume you will want to shut down the interpolation at some point and closing the `Gate` would be one way to do it.

* * *

> move the player character

A good question here is _why_ we’re using this method for player movement. It overrides all the goodness the movement component provides. This could be OK if you were moving chess pieces but characters have their own movement methods - that’s what input vectors, AI and navmesh are for.

Hard to advise without knowing what the overarching goal is, ofc.

---

<div class="post-metadata">

**Author:** ![GamerKon2001](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GamerKon2001](https://forums.unrealengine.com/u/GamerKon2001)\
**Post date:** [August 16, 2024, 9:52am UTC](https://forums.unrealengine.com/t/teleporting-instead-of-panning-is-this-a-bug-or-am-i-missing-something/1978148/5 "2024-08-16T09:52:42Z")

</div>

Thanks for the help, I didn’t understand that the alterations needed to be plugged into the Event Tick. And the reason why I’m locking movement is for a horror game, it’s for restraining movement which is why I’m making a hard coded movement without a lot of control. You honestly made a better blueprint than i ever could of. 🫠

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [August 16, 2024, 10:19am UTC](https://forums.unrealengine.com/t/teleporting-instead-of-panning-is-this-a-bug-or-am-i-missing-something/1978148/6 "2024-08-16T10:19:01Z")

</div>

> [@GamerKon2001](#):
>
> locking movement is for a horror game, it’s for restraining movement which is why I’m making a hard coded movement without a lot of control.

In case you find `Tick` + `vInterpTo` combo eventually lacking, consider a `Spline` + `Timeline` - this will allow you drive any actor along any path shape with as much fidelity as you desire. And also control timing.

* * *

To make it even better, have the player character possessed by an AI controller, and drive a dummy along a spline the AI must chase.

Good luck!

---

<div class="post-metadata">

**Author:** ![GamerKon2001](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GamerKon2001](https://forums.unrealengine.com/u/GamerKon2001)\
**Post date:** [August 16, 2024, 7:55pm UTC](https://forums.unrealengine.com/t/teleporting-instead-of-panning-is-this-a-bug-or-am-i-missing-something/1978148/7 "2024-08-16T19:55:20Z")

</div>

Thank you for the suggestion, I’m using `InterpTo` because during my previous question, I was told to try using `InterpTo` instead of `Timeline`. For an Error i was experiencing previously.

---

<div class="post-metadata">

**Author:** ![TorQueMoD](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/torquemod/32/710746_2.png) [@TorQueMoD](https://forums.unrealengine.com/u/TorQueMoD)\
**Post date:** [August 21, 2024, 11:05pm UTC](https://forums.unrealengine.com/t/teleporting-instead-of-panning-is-this-a-bug-or-am-i-missing-something/1978148/8 "2024-08-21T23:05:21Z")

</div>

I just wanted to add that if you want to Tick for X time, simply take the delta seconds and divide it by a variable called “SecondsToComplete” and that will give you the correct value to make your Tick take whatever value you put into “SecondsToComplete” before it gets to 1.

![TickOverTime](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/f/0/af0121f24e207726e7e4d75a6b22de173e2d7dd0.png)

So in this scenario, rather than using InterpTo, I would use a lerp and take the DeltaSeconds % 5 to make it take 5 seconds to lerp from A to B.

---

<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:** [September 20, 2024, 11:05pm UTC](https://forums.unrealengine.com/t/teleporting-instead-of-panning-is-this-a-bug-or-am-i-missing-something/1978148/9 "2024-09-20T23:05:27Z")

</div>

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