Creating the Vehicle Blueprints
To create a new
Vehicle Blueprint, let's first navigate to our VehicleContent folder in Content Browser and then right-click on an area that is empty. From the context drop-menu, we will select the Blueprint Class option, click on the drop-down All Classes menu, search for the WheeledVehicle Pawn class, and name this blueprint BP_NewVehicle
.
The WheeledVehicle Pawn blueprint contains an inherited component called VehicleMovement. This component allows you to have more control over the wheels and the overall behavior for the vehicle.
Next, we will need to create two different types of Wheel Blueprints for our vehicle (one for the front wheels and one for the back wheels). To get this going, let's navigate to the VehicleContent folder in Content Browser, right-click on an area of Content Browser that is empty, and select the Blueprint Class option. Now, in the context sensitive drop-down menu, enter Vehicle Wheel
to locate the VehicleWheel Blueprint Object class...