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.

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

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