Pawn

Pawn is a child class of Actor. A Pawn class is an Actor class that can be possessed by a Controller. The Controller class represents a player or AI (artificial intelligence). For each instance of the Pawn class, there is an instance of the Controller class. Conceptually, the Pawn class is the physical body, while the Controller class is the brain.

Create a Blueprint based on the Pawn class and click the Class Defaults button to display it on the Details panel. The parameters that are inherited from the Pawn class are shown in the following screenshot. These parameters show that the Pawn class can use the rotation values of the Controller class that is possessing it, thus indicating how a Controller class possesses a Pawn class:

The two main child classes of Pawn are Character and WheeledVehicle.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset