# How does player input get transferred to CharacterMovementComponent::Acceleration?

**URL:** <https://forums.unrealengine.com/t/how-does-player-input-get-transferred-to-charactermovementcomponent-acceleration/2746080>\
**Category:** C++\
**Tags:** unreal-engine, question, CPP\
**Created:** [August 24, 2026, 1:41pm UTC](https://forums.unrealengine.com/t/how-does-player-input-get-transferred-to-charactermovementcomponent-acceleration/2746080 "2026-08-24T13:41:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![YuzukiMoon](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@YuzukiMoon](https://forums.unrealengine.com/u/YuzukiMoon)\
**Post date:** [August 24, 2026, 1:41pm UTC](https://forums.unrealengine.com/t/how-does-player-input-get-transferred-to-charactermovementcomponent-acceleration/2746080/1 "2026-08-24T13:41:22Z")

</div>

I’m new to Unreal Engine and C++, and I’m currently learning how `UCharacterMovementComponent` works.

While trying to override `CalcVelocity()`, I noticed that `UCharacterMovementComponent` has an `Acceleration` member (`FVector`), but I’m having trouble understanding how this value is related to the player’s input.

I traced the code and found `UPawnMovementComponent::GetPendingInputVector()`, but I couldn’t figure out the complete flow from player input to `CharacterMovementComponent::Acceleration`.

Specifically, I’m trying to understand:

**How does input from the PlayerController eventually become the `Acceleration` used by `UCharacterMovementComponent`?**

Is the flow roughly:

`PlayerController input → Character/Pawn → PendingInputVector → CharacterMovementComponent::Acceleration`

If so, which function(s) are responsible for transferring the input between these stages?

I’m particularly interested in understanding the relevant C++ call path in `CharacterMovementComponent` / `PawnMovementComponent`, rather than just how to use the Blueprint input system.

---

<div class="post-metadata">

**Author:** ![OneFreeMan1337](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@OneFreeMan1337](https://forums.unrealengine.com/u/OneFreeMan1337)\
**Post date:** [August 24, 2026, 3:52pm UTC](https://forums.unrealengine.com/t/how-does-player-input-get-transferred-to-charactermovementcomponent-acceleration/2746080/2 "2026-08-24T15:52:04Z")

</div>

Your flow is basically right. There is one link missing and it is the reason the trail went cold.

AddMovementInput on the Pawn is the entry point. It forwards to UPawnMovementComponent::AddInputVector which accumulates into ControlInputVector. That accumulated value is what GetPendingInputVector reads.

The consumption happens in UCharacterMovementComponent::TickComponent. It calls ConsumeInputVector which returns the accumulated vector and zeroes it in the same call. That single detail is probably what confused you. If you read GetPendingInputVector from inside CalcVelocity you get a zero vector every time because it was already consumed earlier in the same tick.

The consumed vector is handed to ControlledCharacterMove and the assignment you are hunting for is one line in there.

```cpp
Acceleration = ScaleInputAcceleration(ConstrainInputAcceleration(InputVector));

```

Two transforms happen on that line and both matter.

ConstrainInputAcceleration zeroes the Z component while you are walking on the ground and applies your plane constraint if you set one. So a movement input with a vertical component does nothing while grounded.

ScaleInputAcceleration clamps the input to a maximum size of one and then multiplies by MaxAcceleration. So Acceleration is in centimetres per second squared and its magnitude never exceeds MaxAcceleration no matter how big the vector you fed in was.

The next line sets AnalogInputModifier from ComputeAnalogInputModifier. That is the value that lets a half deflected analog stick give you a lower top speed rather than just a slower ramp up. It feeds GetMaxSpeed rather than Acceleration so it is easy to miss when you are tracing only the acceleration path.

For what you are actually trying to do the ordering is the good news. Acceleration is assigned before PerformMovement runs so by the time your CalcVelocity override is called it already holds this tick’s input. Read Acceleration directly in there. You never need to reach back to the input vector.

One more thing worth knowing early. On a network client the path is not the same. ControlledCharacterMove is what runs on the authority and on a client the move goes through ReplicateMoveToServer first. If you put logic in CalcVelocity that depends on anything other than the movement component’s own state you will see it behave differently in a listen server test than in standalone.

---

<div class="post-metadata">

**Author:** ![YuzukiMoon](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@YuzukiMoon](https://forums.unrealengine.com/u/YuzukiMoon)\
**Post date:** [August 25, 2026, 2:26am UTC](https://forums.unrealengine.com/t/how-does-player-input-get-transferred-to-charactermovementcomponent-acceleration/2746080/3 "2026-08-25T02:26:09Z")

</div>

Thank you so much!!! That cleared up why my pending vector was always zero—reading `Acceleration` directly now.
