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"

Unsure of how to fix first person walking

Recently I decided to try out UE4 to make a small game which includes first person walking. I followed this tutorial: (https://docs.unrealengine.com/latest/INT/Programming/Tutorials/FirstPersonShooter/2/3/index.html) to see if I could recreate first person walking in my game. I followed the steps correctly and I got WASD movement working, but I noticed a small "bug" where the more I look up or down, the slower my characters moves. As I mentioned above, I am still fairly new to UE4 so I am not sure of a fix to this. If you could, try to follow the steps in the link and see if you get the same results as me. If you can find a fix, posting below would be very helpful, and if this odd "bug" does not happen to you, telling me below would be helpful aswell, thanks.

Product Version: UE 4.15
more ▼

asked Mar 06 '17 at 10:52 PM in C++ Programming

avatar image

1 1 1

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

1 answer: sort voted first

Sounds like you use the complete Forward Vector of your control rotation, this also include the look up rotation but for the forward movement you just need the left/right rotation. Do you use this code snippet for your forward movement, because the last part ".GetScaledAxis" is important.

 FVector Direction = FRotationMatrix(Controller->GetControlRotation()).GetScaledAxis(EAxis::X);
more ▼

answered Mar 07 '17 at 12:14 AM

avatar image

432 12 4 22

avatar image ShoCo2 Mar 09 '17 at 12:52 AM

Yeah I use that, Im not too sure what it does either, like I said Im only copying this code off of the tutorial site to educate myself with it later

(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