Get Last Movement Input Vector

Get Last Movement Input Vector

Windows
MacOS
Linux

Return the last input vector in world space that was processed by ConsumeMovementInputVector(), which is usually done by the Pawn or PawnMovementComponent. Any user that needs to know about the input that last affected movement should use this function. For example an animation update would want to use this, since by default the order of updates in a frame is: PlayerController (device input) -> MovementComponent -> Pawn -> Mesh (animations)

Target is Pawn

Get Last Movement Input Vector
Target
Return Value
X0
Y 0
Z 0

Inputs

Target
Pawn Object Reference

Outputs

Return Value
Vector

The last input vector in world space that was processed by ConsumeMovementInputVector().

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss