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.
- Writing C++ code that controls the game's character
- from Learning C++ by Creating Games with UE4
- Publisher: Packt Publishing
- Released: February 2015
Share this highlighthttp://www.safaribooksonline.com/a/learning-c-by/11597086/