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"

Character forcing turn towards certain direction when swimming up or down

Hi, So I have a water volume set up and it works fine. The issue I'm having is that when I swim up (when pressing space set up with an axis mapping with a value of 1) or down (when pressing shift set up with the same axis mapping but a value of -1). For some reason my character turns towards a specific direction when going up or down. heres the video as a demonstration - https://imgur.com/aZuPu6n

in the video I'm only pressing space and shift to go up and down, the character is turning by itself. heres the swim up/down blueprint - alt text

Product Version: UE 4.19
Tags:
screenshot-4.png (105.2 kB)
more ▼

asked Jun 13 '18 at 08:02 PM in Blueprint Scripting

avatar image

the_tubby1
28 6 6 12

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

1 answer: sort voted first

Thanks to the UnrealSlackers Discord, I got some help. Instead of the add movement input node, i used Addactor local offset. On the delta location pin, i split it and added 1 to the value. Because i was using up AND down on my axis mapping with space being 1 and shift being -1, i needed 2 add actor local offset nodes. So from the axis value, i called an == bool. and if the axis value was == 1 (Up) I added actor local offset with Z of 1. If axis value == -1 i added actor local offset of -1 on the z (down). I hope this helps people. Here's a screenshot of what Mine looks like -

alt text

screenshot-4.png (119.5 kB)
screenshot-4.png (119.5 kB)
more ▼

answered Jun 14 '18 at 09:53 AM

avatar image

the_tubby1
28 6 6 12

(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