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"

unreal 4.5 dash player not facing direction

Hi I am trying to make a very quick player dash, and have the player instantly snap to face the direction of the dash when it starts. Here is the blueprint I am working with. alt text With this the player always faces +x when it dashes. I can't seem to figure this out. Any help would be great. I am using the 3rd person blueprint

Product Version: Not Selected
Tags:
more ▼

asked Nov 05 '14 at 02:30 AM in Blueprint Scripting

avatar image

Exut
20 1 6 8

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

3 answers: sort voted first

Here is the image of the working blueprint alt text

dash_working.jpg (199.9 kB)
more ▼

answered Nov 07 '14 at 08:57 AM

avatar image

Exut
20 1 6 8

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

You should probably send the Dash Vector to "Find Look At rotation" node before setting Actor Rotation. You can't just pass the input vector directly to set actor rotation because the angles here are in degrees. The input vector being small, doesn't rotate your character and hence you feel it is aligning to +x. (0, 0, 0 rotation is +x if you check your character blueprint)

more ▼

answered Nov 05 '14 at 04:56 AM

avatar image

kishoreven
302 13 13 25

avatar image Exut Nov 06 '14 at 08:44 AM

Hi thanks for the advice. I gave it a shot and it almost worked. Here is the modified blueprint: alt text

the dash speed is 1000, so the dash vector is being multiplied quite a bit. With this the character will only face the direction of the dash if it is -y world space but even this is rotated a bit. If he dashes +x he gets rotated -45 degrees. if he dashes +y he is rotated +45 degrees. if he dashes -x he is rotated +45 degrees.

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

If you add the Dash Vector to the Get Actor Location as the target for the Find Look at Rotation, the above blueprint works properly.

more ▼

answered Nov 06 '14 at 03:36 PM

avatar image

Exut
20 1 6 8

(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