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"

Parabolic movement between two points

In my game, I have an actor that when interacted with, it will jump you to another specified actor. Basically, I set it up so that the game will lerp between the position of the first and second actor. It works okay, but I'm looking to try a different effect so that you don't clip through walls. Rather than a straight line from point A to point B, I want to do a parabola to give the effect that the character is actually jumping in a preset path between the two points. Basically, the effect is something like you'd see in cutscene-style parkour in an RPG.

I've tried splines already, but given that pairs of points are not going to be the same distance from each other all the time, I'm not sure if it's actually time effective to have to redraw the spline for every pair of these points. I'm just curious if there is a way to interpolate a parabolic movement.

Product Version: UE 4.18
more ▼

asked Jan 30 '18 at 03:58 AM in Blueprint Scripting

avatar image

35 6 8 14

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

1 answer: sort voted first

have you tried using timelines? then you could use a curve to define location over time. i made one where the x and y value was a lerp and the z value went from the starting point to start +500 then back to starting height. it should be pretty easy to implement

more ▼

answered Jan 30 '18 at 04:05 AM

avatar image

10.1k 33 10 25

avatar image Krayfishkarl Jan 30 '18 at 04:26 AM

Thanks! I still need to play around with it more to get the movements just right, but for now, it seems to be working pretty well.

(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