The Camera rotation is getting inverted when I try this,
FRotator Rotation = Controller->GetControlRotation();
FRotator NewRotation = FRotator(Rotation.Pitch + Value, Rotation.Yaw, Rotation.Roll);
Controller->SetControlRotation(NewRotation);
The Mouse Y input settings is at -1.0
The camera is not inverted when doing
AddControllerPitchInput(Value);
I checked the player controller class and it basically add’s the value to the pitch.
void APlayerController::AddPitchInput(float Val)
{
RotationInput.Pitch += !IsLookInputIgnored() ? Val * InputPitchScale : 0.f;
}
Can someone explain why the camera is being inverted in the first case ?
I’ve tested the mouse Y to have negative values while moving the mouse upwards in both cases.