UPawnMovementComponent::GetLastInputVector

Return the last input vector in world space that was processed by [ConsumeInputVector()](API\Runtime\Engine\GameFramework\UPawnMovementComponent\ConsumeInputVector), 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/PawnMovementComponent.h

Include

#include "GameFramework/PawnMovementComponent.h"

Source

/Engine/Source/Runtime/Engine/Private/Components/PawnMovementComponent.cpp

Syntax

FVector GetLastInputVector() const

Remarks

Return the last input vector in world space that was processed by ConsumeInputVector(), 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.

Returns

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

See Also