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"

How to jump relative to the top of my actor?

I am trying to change the jump out with a jump that will move my character towards the location of the head or top of the character. Say my character is 90 degrees rotated like he is running on a wall, i would like to jump away from the wall rather than as if he were standing straight up. How do I achieve this?

Product Version: UE 4.18
Tags:
more ▼

asked Jan 09 '18 at 08:46 PM in Blueprint Scripting

avatar image

itsMooseman
3 1 2

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

1 answer: sort voted first

Instead of using the standard 'jump' node that comes with the character functionality, I might suggest using the 'launch character' node.

Are you rotating the whole character actor, or just the skeletal mesh? If you're rotating the whole character, you can use 'get actor up vector', if you're rotating just the mesh, you can get the up vector of the mesh.

Multiply the up vector by a float (the float will determine the intensity of the launch, so the higher the value the bigger the launch, the higher the jump) and plug that into the launch velocity on the launch character node.

more ▼

answered Jan 10 '18 at 02:51 PM

avatar image

Arceyo
138 1 6 6

avatar image ThompsonN13 Jan 10 '18 at 03:39 PM

if all else fails just use local space (relative location) when calculating the direction of the jump.

avatar image itsMooseman Jan 10 '18 at 06:02 PM

Works perfectly, thank you! I was rotating the whole actor so the up vector worked exactly as I wanted it

For anyone reading this at a later date, set the multiplier in the thousands to test because 10 won't work.

(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