Click or drag to resize

Vehicle

Vehicle TypeManual / Addons / Vehicle / VehicleVehicle Input Processing

Vehicle

Contents
Overview

A basic class to make vehicles of various types. An example scene is in 'Samples\Starter Content\Scenes\Vehicle.scene'.

Screenshot999999999999999999999043.png
How to create

The vehicle is created like other objects, the easiest way to do this is to drop it into the scene from the Resources Window.

Screenshot999999999999999999999044 2.png
Player control settings

In order to configure vehicle control by a player, you need to configure the properties of the Game Mode object. This object is in the scene. 'Object Controlled By Player' property should point to the vehicle. You also need to configure the type of camera using the 'Use Built In Camera' property (for example, select Third Person).

Screenshot999999999999999999999045 2.png

Now by launching the Player App, you can control the vehicle in a first-person view.

Screenshot999999999999999999999046.png
Customization

The vehicle is customizable by using Vehicle Type component.

Properties
Name Description
Debug Visualization Whether to visualize debug info.
Throttle The throttle parameter to control the vehicle.
Brake The brake parameter to control the vehicle.
Hand Brake The hand brake parameter to control the vehicle.
Steering The steering parameter to control the vehicle.
Health The health of the vehicle.
Team The team index of the object.
See also
Vehicle TypeVehicle Input Processing