x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Difference between lerp and vinterp?

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

Thanks.

Product Version: Not Selected
Tags:
more ▼

asked Jun 21 '14 at 05:47 PM in Using UE4

avatar image

EIREXE
43 9 15 20

(comments are locked)
10|2000 characters needed characters left

2 answers: sort voted first

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.

more ▼

answered Jun 21 '14 at 07:01 PM

avatar image

dissonanceint
1k 42 28 65

avatar image EIREXE Jun 21 '14 at 08:02 PM

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?

avatar image dissonanceint Jun 21 '14 at 08:45 PM

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).

(comments are locked)
10|2000 characters needed characters left

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

more ▼

answered Sep 21 '14 at 12:40 AM

avatar image

skeleton60
620 41 56 86

avatar image bellicapax Jan 31 '19 at 09:21 PM

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.

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question