The Character class is a child class of the Pawn class; therefore, it can also be possessed by a Controller class. This class was created to represent characters that can walk, run, jump, swim, and fly.
A Blueprint based on the Character class inherits the following Components:
- CapsuleComponent: This is used for collision testing.
- ArrowComponent: This indicates the current direction of the character.
- Mesh: This Component is a Skeletal Mesh that visually represents the character. The animation of the Mesh Component is controlled by an animation Blueprint.
- CharacterMovement: This Component is used to define various types of character movements, such as walking, running, jumping, swimming, and flying.
These Components are shown in the following screenshot:
The CharacterMovement Component handles movement as well as replication and prediction in multiplayer games. It contains a lot of parameters that define various types of movements for the character: