So, I'm trying to limit how much the camera can look up and down in my first person game and I wasn't able to get a good result so far. I made a very basic method for looking up and down (I'm still a noob in c++). What should I add to my code ?
void AYT_Character::LookUpAtRate(float value)
{
AddControllerPitchInput(value * BaseLookUpAtRate* GetWorld()->GetDeltaSeconds());
}
any help will be appreciated, I want to do this in c++ and avoid blueprints as much as possible for now.