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.

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

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