# Difference between lerp and vinterp?

**URL:** <https://forums.unrealengine.com/t/difference-between-lerp-and-vinterp/286459>\
**Category:** Pipeline & Plugins\
**Tags:** lerp, unreal-engine, editor, question\
**Created:** [June 21, 2014, 5:47pm UTC](https://forums.unrealengine.com/t/difference-between-lerp-and-vinterp/286459 "2014-06-21T17:47:59Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon90101103](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anon90101103](https://forums.unrealengine.com/u/anon90101103)\
**Post date:** [June 21, 2014, 5:47pm UTC](https://forums.unrealengine.com/t/difference-between-lerp-and-vinterp/286459/1 "2014-06-21T17:47:59Z")

</div>

So I had this question, what does exactly differentiate lerp and vinterp?

Thanks.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_958fa14f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_958fa14f](https://forums.unrealengine.com/u/anonymous_user_958fa14f)\
**Post date:** [June 21, 2014, 7:01pm UTC](https://forums.unrealengine.com/t/difference-between-lerp-and-vinterp/286459/2 "2014-06-21T19:01:36Z")

</div>

Lerp chooses a spot between A and B based on a float.

Interp smoothly moves value A to value B, at the speed you choose.

As an example, say you have a path from A to B but you want it to go back and forth, then teleport midway back to the start. You do that based on a float with Lerp (smoothly from 0 to 1, then 1 to 0, then abruptly change to 0.5)

Interp can also be framerate independent thanks to the built in delta time value.

---

<div class="post-metadata">

**Author:** ![anon90101103](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anon90101103](https://forums.unrealengine.com/u/anon90101103)\
**Post date:** [June 21, 2014, 8:02pm UTC](https://forums.unrealengine.com/t/difference-between-lerp-and-vinterp/286459/3 "2014-06-21T20:02:12Z")

</div>

Alright, so is there any way to control easing (acceleration) in vinterp? like if it starts fast and ends slow or starts slow and ends fast?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_958fa14f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_958fa14f](https://forums.unrealengine.com/u/anonymous_user_958fa14f)\
**Post date:** [June 21, 2014, 8:45pm UTC](https://forums.unrealengine.com/t/difference-between-lerp-and-vinterp/286459/4 "2014-06-21T20:45:35Z")

</div>

Not built in as far as I know but since you can change the speed parameter during interpolation, you could create a function that gets distance between A and B and changes the speed float according to that distance. You should clamp values so it never gets to high (instant) or too low (still).

---

<div class="post-metadata">

**Author:** ![skeleton60](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@skeleton60](https://forums.unrealengine.com/u/skeleton60)\
**Post date:** [September 21, 2014, 12:40am UTC](https://forums.unrealengine.com/t/difference-between-lerp-and-vinterp/286459/5 "2014-09-21T00:40:56Z")

</div>

the parameter inter speed for vinterp is a value between 1 and 0 or a cm/s value ?

---

<div class="post-metadata">

**Author:** ![bellicapax](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@bellicapax](https://forums.unrealengine.com/u/bellicapax)\
**Post date:** [January 31, 2019, 9:21pm UTC](https://forums.unrealengine.com/t/difference-between-lerp-and-vinterp/286459/6 "2019-01-31T21:21:33Z")

</div>

InterpSpeed is multiplied by DeltaTime. That result is clamped b/t 0 and 1. Then it’s multiplied by the vector distance between the two and added to the A vector.

---

<div class="post-metadata">

**Author:** ![DentonJC](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DentonJC](https://forums.unrealengine.com/u/DentonJC)\
**Post date:** [June 24, 2020, 11:18pm UTC](https://forums.unrealengine.com/t/difference-between-lerp-and-vinterp/286459/7 "2020-06-24T23:18:24Z")

</div>

Super old thread, but for future sake, there is an Ease function which allows you to specify the specific function used to smooth the interpolation (sine, linear, exponential, ease etc)

---

<div class="post-metadata">

**Author:** ![Davee](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/davee/32/1026602_2.png) [@Davee](https://forums.unrealengine.com/u/Davee)\
**Post date:** [July 20, 2020, 6:48pm UTC](https://forums.unrealengine.com/t/difference-between-lerp-and-vinterp/286459/8 "2020-07-20T18:48:19Z")

</div>

Exactly, ease function is definitely the best choice here. It has various functions.
