I have class AMyCharacter that inherits ACharacter. I added custom bindings to InputComponent to “Turn” action.
When I try to rotate Actor using
void AMyCharacter::OnTurn(float val) {
FRotator rot(0, 10*val, 0);
this->AddActorLocalRotation(rot);
}
it does not work.
But this works:
AddControllerYawInput(val);
What is the problem with AddActorLocalRotation?