Does Anyone Know how to Rotate the Tank without Rotating the Camera?

I finish the game making; however, as a top down game, the rotating camera truly annoys me.
I have tried adding
bUseControllerRotationPitch = false;
bUseControllerRotationYaw = false;
bUseControllerRotationRoll = false
in APawnTank::APawnTank()
It compiled successfully, but the camera still rotates.
That will be very helpful if you can help me with this problem.

Thank you very much

I added the code below to APawnTank::APawnTank(), and it worked perfectly.

 SpringArmComponent->bInheritRoll = false;
 SpringArmComponent->bInheritYaw = false;
 SpringArmComponent->bInheritPitch = false;

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.