Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UPawnMovementComponent
Description
Adds the given vector to the accumulated input in world space. Input vectors are usually between 0 and 1 in magnitude. They are accumulated during a frame then applied as acceleration during the movement update.
| Name | AddInputVector |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/GameFramework/PawnMovementComponent.h |
| Include Path | #include "GameFramework/PawnMovementComponent.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Components/PawnMovementComponent.cpp |
UFUNCTION (BlueprintCallable, Category="Pawn|Components|PawnMovement")
virtual void AddInputVector
(
FVector WorldVector,
bool bForce
)
Parameters
| Name | Remarks |
|---|---|
| WorldVector | Direction in world space to apply input |
| bForce | If true always add the input, ignoring the result of IsMoveInputIgnored(). |