Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/APawn
Description
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)
| Name | GetLastMovementInputVector |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/GameFramework/Pawn.h |
| Include Path | #include "GameFramework/Pawn.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Pawn.cpp |
UFUNCTION (BlueprintCallable, Category="Pawn|Input", Meta=(Keywords="GetMovementInput GetInput"))
FVector GetLastMovementInputVector() const
The last input vector in world space that was processed by ConsumeMovementInputVector().
See Also
-
GetPendingMovementInputVector()