My suggestion is what @Natalo77 said. Just use the control rotation. Here’s the step-by-step:
- Set up an Axis input in the Project Settings (let’s call it “RotateCamera”)
- In your PlayerController, bind that input to a function (let’s call this function
void RotateCamera(float value)
, for simplicity - Setup your
RotateCamera()
function to pass that value into theAddYawInput()
function
Example:
void AMyPlayerController::RotateCamera(float value)
{
AddYawInput(value);
}