APawn::GetLastMovementInputVector

Return the last input vector in world space that was processed by [ConsumeMovementInputVector()](API\Runtime\Engine\GameFramework\APawn\ConsumeMovementInputVector), which is usually done by the Pawn or PawnMovementComponent.

Choose your operating system:

Windows

macOS

Linux

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

Syntax

FVector GetLastMovementInputVector() 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)

Returns

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

See Also