Example output
// Move the character forward
void MoveForward(float Value)
{
FVector Forward = GetActorForwardVector();
AddMovementInput(Forward, Value);
}
// Move the character right
void MoveRight(float Value)
{
FVector Right = GetActorRightVector();
AddMovementInput(Right, Value);
}
// Set up the input bindings for moving the character
void SetupInput()
{
InputComponent->BindAxis("MoveForward", this, &AMyCharacter::MoveForward);
InputComponent->BindAxis("MoveRight", this, &AMyCharacter::MoveRight);
}