Invert Camera Pitch Movement

This commit is contained in:
Louis Hobbs 2023-01-11 01:48:29 +00:00
parent 27ac40b3c9
commit b59171df27
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ void APlayerCharacter::LookCallback(const FInputActionInstance& Instance)
if (vec2.Size() != 0.0f)
{
AddControllerYawInput(vec2.X * 45.0f * GetWorld()->GetDeltaSeconds());
AddControllerPitchInput(vec2.Y * 45.0f * GetWorld()->GetDeltaSeconds());
AddControllerPitchInput((vec2.Y * (-1.0f)) * 45.0f * GetWorld()->GetDeltaSeconds());
}
}