Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/ADefaultPawn
Description
Input callback to move forward in local space (or backward if Val is negative).
| Name | MoveForward |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/GameFramework/DefaultPawn.h |
| Include Path | #include "GameFramework/DefaultPawn.h" |
| Source | /Engine/Source/Runtime/Engine/Private/DefaultPawn.cpp |
UFUNCTION (BlueprintCallable, Category="Pawn")
virtual void MoveForward
(
float Val
)
Parameters
| Name | Remarks |
|---|---|
| Val | Amount of movement in the forward direction (or backward if negative). |
See Also
- APawn::AddMovementInput()