Acceleration and deceleration
I want to make character which smoothly starting running and smoothly stopping to idle. In first case I set "Max acceleration" to 1000 and it works good but when I try set "Braking deceleration" to any value it seems to have always the same behavior for every value (1 or 1000 it doesn't matter). My character always immediately stop...
Have you any idea what I'm doing wrong?
There are two factors in play when there is no acceleration for your character: Ground Friction and Braking Deceleration Walking. The default value for Friction is 8.0, which is quite high, so that is stopping your character quickly. Friction is relative to velocity, and Deceleration is applied constantly over time. Most likely the Friction is dominating the Deceleration.
Try lowering the Ground Friction value in the Character Movement component to 1.0 or 2.0, and then play with the Braking Deceleration Walking value.
Hope that helps!
answered Jul 02 '14 at 10:33 PM
Also, try setting the "Use Separate Braking" variable to true in the "Character Movement" component. And then set the "Braking Factor" (or similar name) low, to like 0.1 or something. This will cause the character to gradually lose speed when you're running and then release the input.
It's safer this way than setting friction low because that will cause the character to slide around all the time.
Hope this helps!
answered Aug 29 '18 at 08:03 PM
For me. MaxWalkSpeed=125, GroundFriction=0.75, Deceleration=128, Acceleration=128 gives me a somewhat believable movement, of course those are matched to my animations to avoid skating across the floor.
answered Dec 16 '18 at 12:49 AM
For character acceleration, better value (Max Acceleration) for example 300
To slow down a character, it's better to change two values (1.Braking Deceleration walking for example "300" and 2. Braking Friction Factor for example "0")
Follow this question
Once you sign in you will be able to subscribe for any updates here