Navigation
Unreal Engine C++ API Reference > Runtime > Engine > GameFramework > APawn
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/GameFramework/Pawn.h |
Include | #include "GameFramework/Pawn.h" |
Source | /Engine/Source/Runtime/Engine/Private/Pawn.cpp |
FVector GetLastMovementInputVector&40;&41; const
Remarks
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) The last input vector in world space that was processed by ConsumeMovementInputVector().