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"

Problem with Lerp, Slowing at height

So my problem is I have a Vector Lerp (that is activated on a right click then a raycast hitting an object), but as soon as my character gets to B the character has to wait a couple of seconds before moving again. The character moves through a collision box but i have tested it outside of a collision box and it still stops at B.

I use a timeline (on the left). Extremely confused, i am expecting gravity to kick in as soon as the lerp reaches B, but it doesn't. :( alt text

EDIT: In case anyone else has this problem heres how i fixed it in the blueprint alt text

Product Version: UE 4.16
lerpproblem.jpg (98.8 kB)
lerpproblem.jpg (97.2 kB)
more ▼

asked Jul 20 '17 at 11:29 AM in Blueprint Scripting

avatar image

8 1 3

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

The problem is that you keep calling GetActorLocation every time the timeline updates. So the closer you get to the end the closer the lerp's starting point is, soon you'll be very close to the end but maybe half the lerp left to go.

Save the initial Actor Location in a variable before the timeline to lerp between.

more ▼

answered Jul 20 '17 at 03:49 PM

avatar image

2.1k 38 17 52

avatar image TheCrimsonRevenant Jul 21 '17 at 01:24 AM

I can't believe i didnt think of that, it makes sense

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
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