The Stop Movement ability allows the character to play a sudden stop animation. This ability will monitor the character’s input values and will automatically activate when the character stops.

Setup

  1. Select the + button in the ability list under the “Abilities” foldout of the Ultimate Character Locomotion component.
  2. Add the Stop Movement ability. This ability should be positioned towards the bottom of the ability list so it does not prevent any other ability from starting.

Inspector Fields

Max Input Count

The number of inputs to store when determining if the ability can start. The smaller the value the less sensitive the ability is when determining if it should start.

Speed Change Threshold

The input value which differentiates between a walk and a run. When the ability starts it will use this value to determine if a walk or run stopping animation should be played.

Stop Threshold

The threshold that indicates when the character has stopped.  The ability will start sooner with a larger value.

Required Start Success Count

The number of times CanStartAbility must return true before the ability actually starts. This will prevent the ability from starting too soon to ensure the character is actually starting versus just doing a Quick Turn.