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"

Change walking speed in First Person template C++

So I have created a new C++ project using First Person template and now I just want to change walking speed. CharacterMovementComponent.cpp has these variables

 MaxWalkSpeed = 600.0f;
 WalkingSpeed = 165.f;
 WalkingAcceleration = 500.f;

I tried changing these values to higher ones, but my character's speed is still the same... How can I change it? It actually seems that whatever I change in CharacterMovementComponent.cpp it won't change anything in the game, even though I compile it correctly. You can try creating that project yourself and check how to change it, because I didn't change anything

Product Version: UE 4.19
Tags:
more ▼

asked Aug 01 '18 at 09:32 PM in C++ Programming

avatar image

spvms
1 1 1

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

1 answer: sort voted first

Increasing MaxWalkSpeed in CharacterMovementComponent should be enough to change your top speed. Keep in mind that if you are setting those values in the C++ constructor, then those will be the default values for your class. That means that if you have a blueprint that is inheriting from your C++ class before you change your default c++ values you should check that those values are not being overriden by the blueprint.

more ▼

answered Aug 01 '18 at 10:31 PM

avatar image

Sveitar
968 7 22 26

(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