Book Image

Unreal Engine Physics Essentials

By : Devin Sherry, Katax Emperore
Book Image

Unreal Engine Physics Essentials

By: Devin Sherry, Katax Emperore

Overview of this book

This book gives readers practical insight into the mathematical and physics principles necessary to properly implement physics within Unreal Engine 4. Discover how to manipulate physics within Unreal Engine 4 by learning basic real-world mathematical and physics concepts that assist in the implementation of physics-based objects in your game world. Then, you'll be introduced to PhAT (Physics Asset Tool) within Unreal Engine 4 to learn more about developing game physics objects for your game world. Next, dive into Unreal Engine 4’s collision generation, physical materials, blueprints, constraints, and more to get hands-on experience with the tools provided by Epic to create real-world physics in Unreal Engine 4. Lastly, you will create a working Vehicle Blueprint that uses all the concepts covered in this book, as well as covering advanced physics-based topics.
Table of Contents (15 chapters)
Unreal Engine Physics Essentials
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Preface
Index

Scripting movement behaviors


Before we can have our vehicle move through various player controls, we need to script the blueprint behaviors in BP_NewVehicle Event Graph by taking advantage of the VehicleMovement (Inherited) Component variable. To start with, let's navigate to Content Browser and to our VehicleContent folder so that we can double-click and open BP_NewVehicle.

In an empty area of Event Graph, let's right-click and use the context-sensitive drop-down menu to search for our Input Axis MoveForward event node so that we can control the forward and backward throttle of our vehicle. Next, we need to grab a Get variable of the VehicleMovement (Inherited) component. To do this, we have to hold down the CTRL key and then click and drag the VehicleMovement component from the Components tab onto our Event Graph. Then, we can pull the VehicleMovement variable and search for the Set Throttle Input action node from the context-sensitive drop-down menu that appears. Finally, we can connect...