Invert Camera Pitch Movement
This commit is contained in:
parent
27ac40b3c9
commit
b59171df27
|
@ -133,7 +133,7 @@ void APlayerCharacter::LookCallback(const FInputActionInstance& Instance)
|
||||||
if (vec2.Size() != 0.0f)
|
if (vec2.Size() != 0.0f)
|
||||||
{
|
{
|
||||||
AddControllerYawInput(vec2.X * 45.0f * GetWorld()->GetDeltaSeconds());
|
AddControllerYawInput(vec2.X * 45.0f * GetWorld()->GetDeltaSeconds());
|
||||||
AddControllerPitchInput(vec2.Y * 45.0f * GetWorld()->GetDeltaSeconds());
|
AddControllerPitchInput((vec2.Y * (-1.0f)) * 45.0f * GetWorld()->GetDeltaSeconds());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue