# Standard Vehicle Configuration

## Standard First Step:

Place the model in the scene > Unpack the prefab > Add <mark style="color:green;">colliders</mark>, a <mark style="color:green;">rigidbody</mark> and set vehicle to layer as **Vehicle\[8]**

## Standard Vehicle Locomotion Settings

All vehicles have some default properties, like it:

<figure><img src="https://2945806600-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCQMDx0LmgnRXXTklLhoh%2Fuploads%2FniPSmyAR10XjwTLeulrm%2FScreenshot%20from%202024-03-19%2019-37-29.png?alt=media&#x26;token=eb0a9f07-1aeb-4e9a-be83-824feda2b4af" alt=""><figcaption></figcaption></figure>

Vehicles already have properties like Engine, Drive Pad and steering control. The base system hasn't wheels because this needs a different implementation by vehicle type (cars and motorcycles for example, let's see it after).

Okay, let's  explain some base vehicle properties.

Base vehicle settings.

| Base Properties            | Description                                                                                                                                               |
| -------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Use Default Inputs         | If enabled, the vehicle can be controlled by the player using the standard input settings.                                                                |
| Character Exiting Position | Used by the character to exit the vehicle (if is inside the vehicle). Is the local position where the character will be positioned when he stops driving. |

Engine contains all vehicle accelerating properties.

| Engine             | Description                                                                                                                                                                                                                                                  |
| ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Max Forward Speed  | Max speed to move to forward.                                                                                                                                                                                                                                |
| Max Rear Speed     | Max speed to move to backward.                                                                                                                                                                                                                               |
| Torque Force       | Vehicle acceleration force                                                                                                                                                                                                                                   |
| Brake Force        | Brake force                                                                                                                                                                                                                                                  |
| Acceleration Curve | Represents the engine acceleration force by speed, recommended always set the start as 1 and the end as 0, this makes the vehicle have all acceleration force if is on low speed and very small acceleration if on high speeds, acting as speed limiter too. |
| Center of Mass     | Center of Mass of vehicle, recommended set it to a low value (0, 0, 0) as example, represented as a local position inside the vehicle, it's can help on the stability depending the configuration.                                                           |

Stores driver control sensitivity.

| Drive Pad Smooth   | Description                                      |
| ------------------ | ------------------------------------------------ |
| Rise Rate Throttle | Speed to accelerate the vehicle.                 |
| Fall Rate Throttle | Speed to decelerate the vehicle.                 |
| Rise Rate Steer    | Speed to turn the wheel to some direction.       |
| Fall Rate Steer    | Speed to reset wheel rotation when not steering. |
| Rise Rate Brake    | Speed to brake.                                  |
| Fall Rate Brake    | Speed to reset brake.                            |

## Anti-Overturn Checker Parameters

Some vehicles may have a rollover checker, which returns the car to its original rotation.

<figure><img src="https://2945806600-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCQMDx0LmgnRXXTklLhoh%2Fuploads%2F1OBPUQAf3RqeQZ9KXQ9t%2Fimage.png?alt=media&#x26;token=dc6cd57c-b6b7-4b79-b4f9-a416cd70e826" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://julhiecio.gitbook.io/ju-tps-documentation/game-development/how-to-use-vehicle-system/standard-vehicle-configuration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
