O'Reilly logo
  • LI WEI thinks this is interesting:

The Controller object and the AddMovementInput functions are defined in the APawn base class. Since the Avatar class derives from ACharacter, which in turn derives from APawn, we get free use of all the member functions in the base class APawn.

From

Cover of Learning C++ by Creating Games with UE4

Note

Acharacter继承自APawn,APawn中有controller 和AddmovementInput函数