Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Unreal Engine Physics Essentials

You're reading from   Unreal Engine Physics Essentials Gain practical knowledge of mathematical and physics concepts in order to design and develop an awesome game world using Unreal Engine 4

Arrow left icon
Product type Paperback
Published in Sep 2015
Publisher
ISBN-13 9781784394905
Length 216 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Authors (2):
Arrow left icon
Devin Sherry Devin Sherry
Author Profile Icon Devin Sherry
Devin Sherry
Katax Emperore Katax Emperore
Author Profile Icon Katax Emperore
Katax Emperore
Arrow right icon
View More author details
Toc

Table of Contents (10) Chapters Close

Preface 1. Math and Physics Primer FREE CHAPTER 2. Physics Asset Tool 3. Collision 4. Constraints 5. Physics Damping, Friction, and Physics Bodies 6. Materials 7. Creating a Vehicle Blueprint 8. Advanced Topics 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...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image