O'Reilly logo

Unreal Engine Physics Essentials by Devin Sherry, Katax Emperore

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required