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"

Understanding character movement values

So I'm attempting to make my guy jump higher depending on his velocity. I'm not fully comprehending what all of the values are under the character movement.

Any idea how to do this? Thanks!

Product Version: Not Selected
more ▼

asked Jan 18 '15 at 10:28 PM in Using UE4

avatar image

6 4 7 9

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

1 answer: sort voted first

Ok, so, the velocity vector can be used to get the current speed of your character. Which means, taking the length of that vector, will give return a number from 0.0 to Max Movement Speed.

In the 3rd Person Template, this is 600 if i remember correctly.

For the jump height. The Jumpheight can be set through changing the JumpZVelocity. A 0.0 JumpZVelocity won't move the character at all. This variable has a standard value of 600. So if you would plug in the Velocity of your character (or better the length of it), you would have a normal jump at max movement speed and no jump at all if you stand still (or at least you won't get any height. The animation still fires in this test template). You could now try some calculation, like multiplying the velocity length with 2 to get double the height when moving at max speed or something like that. But that is up to you.

more ▼

answered Jan 18 '15 at 10:54 PM

avatar image

6.8k 333 185 470

avatar image Jaytaz Jan 18 '15 at 11:17 PM

Interesting, so is this what you're saying? (also just to clarify I'm in 2D, not sure if it matters)

alt text

I'm assuming something is incorrect because it's not working. :P

It still jumps with the default jump Z value.

jump.png (120.3 kB)
avatar image eXi Jan 18 '15 at 11:25 PM

Oh, i didn't know you are talking about 2D Characters. If they are not working differently, then try this:


NODE: I am using the Eventick, because i was printing the value to test. Just use it with your Jump Input + the Jump function.

avatar image Jaytaz Jan 18 '15 at 11:43 PM

Wow works wonderfully! Now I just need to play around for what values I want. Thank you!

(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